git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] git-completion.bash: stash-show: complete $__git_diff_common_options

From
RKRobert Karszniewicz <avoidr@posteo.de>
Date
Oct 6, 2020, 22:06 UTC
Message-ID
<20201006220637.28139-2-avoidr@posteo.de>
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
Previous: Robert KarszniewiczNext: Junio C Hamano
Message 2 of 3 in “git-completion.bash: __git_diff_common_options: add --[no-]patch”
  1. 1/2 git-completion.bash: __git_diff_common_options: add --[no-]patchRobert Karszniewicz, Oct 6, 2020
  2. 2/2 git-completion.bash: stash-show: complete $__git_diff_common_optionsRobert Karszniewicz, Oct 6, 2020
  3. Junio C HamanoOct 7, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.