[git completions] Offer unmerged files for add

These occur e.g. when resolving a conflict, which then needs `git add`.
This commit is contained in:
Fabian Homborg 2018-03-06 22:04:35 +01:00
parent b24971dc9e
commit f3c864a9e2

View file

@ -449,7 +449,7 @@ complete -c git -n '__fish_git_using_command add' -l ignore-errors -d 'Ignore er
complete -c git -n '__fish_git_using_command add' -l ignore-missing -d 'Check if any of the given files would be ignored'
# Renames also show up as untracked + deleted, and to get git to show it as a rename _both_ need to be added.
# However, we can't do that as it is two tokens, so we don't need renamed here.
complete -f -c git -n '__fish_git_using_command add' -a '(__fish_git_files modified untracked deleted)'
complete -f -c git -n '__fish_git_using_command add' -a '(__fish_git_files modified untracked deleted unmerged)'
# TODO options
### checkout