aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-11 14:53:16 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-11 15:03:04 +0200
commita38d5504acfd5126af7ab93fe660127428da7492 (patch)
tree70e1caa196ae9c346abe565232ca98b9cbe04a19 /share/completions
parent76d24aa1bc423d906167470bf3b68e9c1ef0ea91 (diff)
git completion: Allow --pretty for more commands
This _should_ be all of them.
Diffstat (limited to 'share/completions')
-rw-r--r--share/completions/git.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish
index e2c53251..19da0f98 100644
--- a/share/completions/git.fish
+++ b/share/completions/git.fish
@@ -184,6 +184,7 @@ end
# general options
complete -f -c git -l help -d 'Display the manual of a git command'
+complete -f -c git -n '__fish_git_using_command log show diff-tree rev-list' -l pretty -a 'oneline short medium full fuller email raw format:'
#### fetch
complete -f -c git -n '__fish_git_needs_command' -a fetch -d 'Download objects and refs from another repository'
@@ -360,7 +361,6 @@ complete -f -c git -n '__fish_git_needs_command' -a init -d 'Create an empty git
### log
complete -c git -n '__fish_git_needs_command' -a log -d 'Show commit logs'
complete -c git -n '__fish_git_using_command log' -a '(__fish_git_heads) (__fish_git_ranges)' -d 'Branch'
-complete -f -c git -n '__fish_git_using_command log' -l pretty -a 'oneline short medium full fuller email raw format:'
# TODO options
### merge