git completion: add --stat to show

Of the various options for show, --stat is the one I
regularly use to know the size of a commit.
This commit is contained in:
Frederik Gladhorn 2016-07-15 22:04:12 +02:00 committed by Kurtis Rader
parent 20f28c2ef3
commit 190fb4a665

View file

@ -300,6 +300,7 @@ complete -f -c git -n '__fish_git_using_command show' -a '(__fish_git_branches)'
complete -f -c git -n '__fish_git_using_command show' -a '(__fish_git_unique_remote_branches)' -d 'Remote branch' complete -f -c git -n '__fish_git_using_command show' -a '(__fish_git_unique_remote_branches)' -d 'Remote branch'
complete -f -c git -n '__fish_git_using_command show' -a '(__fish_git_tags)' --description 'Tag' complete -f -c git -n '__fish_git_using_command show' -a '(__fish_git_tags)' --description 'Tag'
complete -f -c git -n '__fish_git_using_command show' -a '(__fish_git_commits)' complete -f -c git -n '__fish_git_using_command show' -a '(__fish_git_commits)'
complete -f -c git -n '__fish_git_using_command show' -l stat -d 'Generate a diffstat, showing the number of changed lines of each file'
# TODO options # TODO options
### show-branch ### show-branch