git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-completion: add stashes for gitk
@ 2015-03-12  0:42 Sveinung Kvilhaugsvik
  2015-03-12 18:11 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Sveinung Kvilhaugsvik @ 2015-03-12  0:42 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Sveinung Kvilhaugsvik

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-14  5:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12  0:42 [PATCH] git-completion: add stashes for gitk Sveinung Kvilhaugsvik
2015-03-12 18:11 ` Junio C Hamano
2015-03-12 18:40   ` Junio C Hamano
2015-03-13 17:25     ` Sveinung Kvilhaugsvik
2015-03-14  5:18       ` Junio C Hamano

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 NNTP newsgroup(s).