junegunn / fzf-git.sh

bash and zsh key bindings for Git objects, powered by fzf
612 stars 53 forks source link

fix: force --no-branch for git status in the files binding #26

Closed ndegory closed 1 year ago

ndegory commented 1 year ago

I noticed my _fzf_git_files widget started to add the ## branch...branch line after I updated my ~/.gitconfig with branch = true in the status section. Adding --no-branch to the git status command makes sure the result is the same whatever the git config is.

Before the change (extra line with the branch information): Screenshot 2023-06-05 at 3 51 25 PM After the change (expected behavior): Screenshot 2023-06-05 at 3 52 20 PM