Add completion for git-commit

Modified files are provided for completion
This commit is contained in:
Jan Ernsting 2015-09-04 19:54:01 +02:00
parent bd3b4e03e9
commit d92c08c9bb

View file

@ -233,6 +233,7 @@ complete -f -c git -n '__fish_git_needs_command' -a clone -d 'Clone a repository
### commit
complete -c git -n '__fish_git_needs_command' -a commit -d 'Record changes to the repository'
complete -c git -n '__fish_git_using_command commit' -l amend -d 'Amend the log message of the last commit'
complete -c git -n '__fish_git_using_command commit' -a '(__fish_git_modified_files)'
# TODO options
### diff