wfxr / forgit

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

Adding the ability to grh from a subdirectory #262

Closed cjappl closed 1 year ago

cjappl commented 1 year ago

Check list

Description

Closes #254

grh didn't work if you were in a subdirectory. From the issue ticket:

" Steps to repro

Change a file
git add the file
mkdir somesubdirectory && cd somesubdirectory
grh

Expected:

File show up in forgit, if you tab select them they get unstaged

Observed: Nothing to unstage. "

This should fix that.

Type of change

Test environment

cjappl commented 1 year ago

Pinging @sandr01d as a reviewer if you're free :) thanks for the suggestion on #254 , you were exactly right with the --staged clue

cjappl commented 1 year ago

Thanks friends! Merging