Skip to content

Use GitPython #1

Closed as not planned
Closed as not planned

Description

@ThatXliner

instead of subcommands

Activity

  1. ThatXliner commented on Sep 8, 2026

    @ThatXliner
    OwnerAuthor

    Closing as not planned after reviewing the motivation for this change.

    The original goal was to avoid spawning Git processes. GitPython still invokes the installed Git executable for many operations, including worktree management, so switching to it would add a dependency without meeting that goal.

    Dulwich implements Git directly and provides worktree APIs, but avoiding subprocesses alone does not justify switching git-worm to a different Git implementation. For a worktree manager, using Git itself keeps behavior aligned with the Git users already run, including repository configuration, checkout behavior, and worktree safety checks. A migration may be inexpensive to write, but validating and maintaining compatibility remains an ongoing cost. Removing the Git installation requirement also offers little benefit to this tool's intended users.

    We can revisit this if benchmarks demonstrate a meaningful subprocess bottleneck, or if running without Git becomes a product requirement. The NUL-delimited filename handling improvements from PR #4 can be implemented independently of GitPython.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions