summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Steven Fernandez <steve@lonetwin.net>2018-09-27 20:59:00 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-07 10:05:49 +0900
commit705f5f122cb3659db20e0a621ab1e9c09f1e0624 (patch)
treea25432814f9fb5ffb890d1eb9a9b33c3592e3fc1
parentSync with 2.19.1 (diff)
downloadtgif-705f5f122cb3659db20e0a621ab1e9c09f1e0624.tar.xz
git-completion.bash: add completion for stash list
Since stash list accepts git-log options, add the following useful options that make sense in the context of the `git stash list` command: --name-status --oneline --patch-with-stat Signed-off-by: Steven Fernandez <steve@lonetwin.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--contrib/completion/git-completion.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index d63d2dffd4..06ec6ca113 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2567,6 +2567,9 @@ _git_stash ()
drop,--*)
__gitcomp "--quiet"
;;
+ list,--*)
+ __gitcomp "--name-status --oneline --patch-with-stat"
+ ;;
show,--*|branch,--*)
;;
branch,*)