wfxr / forgit

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

Forgit `gcb` shows more than just branch names in fzf search #167

Closed tommyalatalo closed 2 years ago

tommyalatalo commented 2 years ago

Check list

Environment info

Problem / Steps to reproduce

When I use gcb the list that fzf searches is not only containing the branch name, but also the commit hash and the last commit message in columns to the right (but still to the left of the preview window), this makes it very difficult to search for a branch name that I want to check out because the fzf search starts looking in the commit messages as well and the results are all jumbled up. It seems that fzf is getting populated with more than just a list of branch names for some reason, I'm not sure if this is a misconfiguration on my part or if it's a bug, is there some config where I can check and possibly change the command output that's passed to fzf by forgit gcb?

I'm using the forgit-git r300.c091aab-1 package on Arch.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

tommyalatalo commented 2 years ago

I have pushed pull request #201 to fix this issue, only thing needed seems to be to remove the --verbose flag from the git command in forgit::checkout::branch. This would also close #180.