tummychow / git-absorb

git commit --fixup, but automatic
https://crates.io/crates/git-absorb
BSD 3-Clause "New" or "Revised" License
3.38k stars 58 forks source link

Support `extensions.worktreeConfig` #58

Open derrickstolee opened 2 years ago

derrickstolee commented 2 years ago

I was trying this on my system with multiple worktrees and got this error:

Mar 09 10:06:43.240 CRIT absorb failed, err: unsupported extension name extensions.worktreeconfig; class=Repository (6)

I was able to workaround this by running

git config --unset extensions.worktreeConfig

and then running git-absorb. I re-enabled the config afterwards.

tummychow commented 2 years ago

looks blocked on upstream: https://github.com/libgit2/libgit2/issues/6044

derrickstolee commented 2 years ago

looks blocked on upstream: libgit2/libgit2#6044

I figured that was the case. Thanks for the pointer to what you're using under the hood!

Pi-Cla commented 4 months ago

This is now supported as of libgit2 1.8.0 https://github.com/libgit2/libgit2/pull/6756

Just gotta wait till git2-rs bumps their libgit2 https://github.com/rust-lang/git2-rs/pull/1032