gilt icon indicating copy to clipboard operation
gilt copied to clipboard

Swap out git CLI for go-git

Open 0xDEC0DE opened this issue 2 years ago • 6 comments

There's an indirect requirement for the git CLI to be installed and in the $PATH for Gilt to work at all. It's also an unspoken requirement for the git to be 2.20 or newer (that isn't a high bar to clear, newer versions than that are even in Debian LTS)

go-git supports bare clones, and has enough worktree support for what Gilt is trying to get done, so it could be folded in and Gilt could handle everything on its own.

This is unfortunately blocked on a lack of support for partial clones in go-git: https://github.com/go-git/go-git/issues/1381

0xDEC0DE avatar Dec 23 '23 18:12 0xDEC0DE

This looks promising: https://github.com/go-git/go-git/pull/1000

0xDEC0DE avatar Jan 18 '24 18:01 0xDEC0DE

This looks promising: go-git/go-git#1000

oooOOO

retr0h avatar Jan 18 '24 19:01 retr0h

Stale issue message

github-actions[bot] avatar Mar 19 '24 01:03 github-actions[bot]

200w

0xDEC0DE avatar Mar 26 '24 04:03 0xDEC0DE

The required feature set is allegedly targeted for their v6.0.0 release.

0xDEC0DE avatar Feb 12 '25 21:02 0xDEC0DE

Adding myself as I also need this

joeblew999 avatar Apr 24 '25 06:04 joeblew999