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

[PATCH] git-completion: add stashes for gitk

From
Sveinung Kvilhaugsvik <sveinung84@users.sourceforge.net>
Date
Mar 12, 2015, 00:42 UTC
Message-ID
<1426120961-2273-1-git-send-email-sveinung84@users.sourceforge.net>

Auto complete stashed modifications for gitk. This makes them easier to discover and faster to view.

Signed-off-by: Sveinung Kvilhaugsvik <sveinung84@users.sourceforge.net>
---
 contrib/completion/git-completion.bash | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index c21190d..3a23abb 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2644,6 +2644,8 @@ __gitk_main ()
 		;;
 	esac
 	__git_complete_revlist
+	__gitcomp_nl_append "$(git --git-dir="$(__gitdir)" stash list \
+			| sed -n -e 's/:.*//p')"
 }
 
 if [[ -n ${ZSH_VERSION-} ]]; then
-- 
2.1.4
Next: Junio C Hamano
Message 1 of 5 in “git-completion: add stashes for gitk”
  1. git-completion: add stashes for gitkSveinung Kvilhaugsvik, Mar 12, 2015
  2. Junio C HamanoMar 12, 2015
  3. Junio C HamanoMar 12, 2015
  4. Sveinung KvilhaugsvikMar 13, 2015
  5. Junio C HamanoMar 14, 2015

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.