From: Robert Karszniewicz <avoidr@posteo.de>
To: git@vger.kernel.org
Subject: [PATCH 2/2] git-completion.bash: stash-show: complete $__git_diff_common_options
Date: Wed, 7 Oct 2020 00:06:37 +0200 [thread overview]
Message-ID: <20201006220637.28139-2-avoidr@posteo.de> (raw)
In-Reply-To: <20201006220637.28139-1-avoidr@posteo.de>
Signed-off-by: Robert Karszniewicz <avoidr@posteo.de>
---
contrib/completion/git-completion.bash | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index f363554996..83bc64607b 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -3020,7 +3020,10 @@ _git_stash ()
list,--*)
__gitcomp "--name-status --oneline --patch-with-stat"
;;
- show,--*|branch,--*)
+ show,--*)
+ __gitcomp "$__git_diff_common_options"
+ ;;
+ branch,--*)
;;
branch,*)
if [ $cword -eq 3 ]; then
--
2.28.0
next prev parent reply other threads:[~2020-10-06 22:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-06 22:06 [PATCH 1/2] git-completion.bash: __git_diff_common_options: add --[no-]patch Robert Karszniewicz
2020-10-06 22:06 ` Robert Karszniewicz [this message]
2020-10-07 17:54 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201006220637.28139-2-avoidr@posteo.de \
--to=avoidr@posteo.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this inbox:
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).