From: Marco Patzer <lists@homerow.info>
To: zsh-workers@zsh.org
Subject: add include untracked option to stash
Date: Sat, 21 Sep 2013 19:34:55 +0200 [thread overview]
Message-ID: <20130921173455.GI17308@homerow> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 92 bytes --]
Hi,
I extended the autocomplete function for the git stash command.
Patch attached.
Marco
[-- Attachment #1.2: add-include-untracked-option-to-stash.patch --]
[-- Type: text/x-diff, Size: 703 bytes --]
diff --git Completion/Unix/Command/_git Completion/Unix/Command/_git
index 9808040..469dd70 100644
--- Completion/Unix/Command/_git
+++ Completion/Unix/Command/_git
@@ -1415,6 +1415,7 @@ _git-stash () {
'( --no-keep-index)--keep-index[all changes already added to the index are left intact]' \
'(--keep-index )--no-keep-index[all changes already added to the index are undone]' \
'(-q --quiet)'{-q,--quiet}'[suppress all output]' \
+ '(-u --include-untracked)'{-u,--include-untracked}'[all untracked files are also stashed and then cleaned up with git clean]' \
'::message' && ret=0
;;
(list)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
next reply other threads:[~2013-09-21 17:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-21 17:34 Marco Patzer [this message]
2013-09-22 12:06 ` Frank Terbeck
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=20130921173455.GI17308@homerow \
--to=lists@homerow.info \
--cc=zsh-workers@zsh.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).