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

[PATCH] git-completion.bash: Add completion for stash list

From
Steve <steve@lonetwin.net>
Date
Sep 27, 2018, 20:09 UTC
Message-ID
<4652c92c88b6c256d7bb51cd6524088eba4f4387.camel@lonetwin.net>

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>
---

This is my first patch to the project so please be excuse any process errors. I think my mail client messed up the line wrapping in my last mail. Hopefully this one's better. Although, I've tried my best to follow the guidelines in Documentation/SubmittingPatches but I'm not sure if I missed anything.

 contrib/completion/git-completion.bash | 3 +++
 1 file changed, 3 insertions(+)
diff --git contrib/completion/git-completion.bash contrib/completion/git-completion.bash
index d63d2dffd..06ec6ca11 100644
--- contrib/completion/git-completion.bash
+++ 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,*)
-- 
2.17.1
Message 1 of 1 in “git-completion.bash: Add completion for stash list”
  1. git-completion.bash: Add completion for stash listSteve, Sep 27, 2018

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.