git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sveinung Kvilhaugsvik <sveinung84@users.sourceforge.net>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>,
	Sveinung Kvilhaugsvik <sveinung84@users.sourceforge.net>
Subject: [PATCH] git-completion: add stashes for gitk
Date: Thu, 12 Mar 2015 01:42:41 +0100	[thread overview]
Message-ID: <1426120961-2273-1-git-send-email-sveinung84@users.sourceforge.net> (raw)

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

             reply	other threads:[~2015-03-12  0:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12  0:42 Sveinung Kvilhaugsvik [this message]
2015-03-12 18:11 ` [PATCH] git-completion: add stashes for gitk 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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426120961-2273-1-git-send-email-sveinung84@users.sourceforge.net \
    --to=sveinung84@users.sourceforge.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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.
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).