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

Signed-off-by: Sveinung Kvilhaugsvik <[email protected]>
---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to