Skip to content

Comments

Switch from git2 to gitoxide#159

Merged
petersimonsson merged 1 commit intojrmoulton:mainfrom
junglerobba:gitoxide
Apr 20, 2025
Merged

Switch from git2 to gitoxide#159
petersimonsson merged 1 commit intojrmoulton:mainfrom
junglerobba:gitoxide

Conversation

@junglerobba
Copy link
Collaborator

#156

My attempt at this, with a few caveats:

This removes the need to link against libgit2, however adds a runtime dependency on git, which users should generally have installed

In two places a git process is spawned:

  • when creating a new default worktree (not supported by gitoxide, but also not the common scenario when opening a repo)
  • when cloning a repo (this is technically supported by gitxode, but adds a lot of complexity for credentials and progress display)

These are both one-off commands without any need for integration where we'd have any gain to implementing them in rust

As I wrote in #156 (comment), performance is massively improved for submodules, otherwise it's not a noticeable difference

This removes the need to link against libgit2, however adds a runtime
dependency on git, which users should generally have installed

In two places a git process is spawned:
 - when creating a new default worktree (not supported by gitoxide, but
   also not the common scenario when opening a repo)
 - when cloning a repo (this is technically supported by gitxode, but adds
   a lot of complexity for credentials and progress display)

These are both one-off commands without any need for integration where
we'd have any gain to implementing them in rust
@petersimonsson petersimonsson merged commit 93ad726 into jrmoulton:main Apr 20, 2025
6 checks passed
@junglerobba junglerobba deleted the gitoxide branch April 20, 2025 07:29
@junglerobba junglerobba mentioned this pull request Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants