[PATCH] git-completion: add stashes for gitk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Sveinung Kvilhaugsvik <sveinung84@xxxxxxxxxxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]