wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

grh only works correctly when in the root directory #254

Closed cjappl closed 1 year ago

cjappl commented 1 year ago

Steps to repro

Expected:

Observed: Nothing to unstage.

I think this is a regression with the big merge, if that gives a hint on how to fix it! (not blaming, just pointing that out as a detail that can help track down the fix)

I'll submit a fix for this if I have time :)

sandr01d commented 1 year ago

I think this has to do with the --relative here:

https://github.com/wfxr/forgit/blob/42c8e005fece723de68d78906bb3ba7b70ff65c7/bin/git-forgit#L184

Removing this does open the fzf selection, but it doesn't fix this completely as unstaging still doesn't work outside the root directory. I don't have the time to go after this today, but I thought I'd drop a hint.