zsh-workers
 help / color / mirror / code / Atom feed
From: Nikolai Weibull <now@bitwi.se>
To: zsh-workers@zsh.org
Cc: Nikolai Weibull <now@bitwi.se>
Subject: [PATCH 2/4] Only show modified files for git-checkout without tree
Date: Fri, 18 Mar 2011 22:35:10 +0100	[thread overview]
Message-ID: <1300484112-9392-3-git-send-email-now@bitwi.se> (raw)
In-Reply-To: <1300484112-9392-1-git-send-email-now@bitwi.se>

Signed-off-by: Nikolai Weibull <now@bitwi.se>
---
 Completion/Unix/Command/_git |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 3694d4a..8a590be 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -396,7 +396,7 @@ _git-checkout () {
         # TODO: Allow A...B
         local branch_arg='branches::__git_revisions' \
               tree_ish_arg='tree-ishs::__git_tree_ishs' \
-              file_arg='files::__git_cached_files'
+              file_arg='modified-files::__git_modified_files'
 
         if [[ -n ${opt_args[(I)-b|-B|--orphan]} ]]; then
           tree_ish_arg=
@@ -418,7 +418,7 @@ _git-checkout () {
       elif [[ -n $line[1] ]] && __git_is_treeish $line[1]; then
         __git_ignore_line __git_tree_files ${PREFIX:-.} $line[1] && ret=0
       else
-        __git_ignore_line __git_cached_files && ret=0
+        __git_ignore_line __git_modified_files && ret=0
       fi
       ;;
   esac
-- 
1.7.4.1


  parent reply	other threads:[~2011-03-18 22:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-18 21:35 Small patches o git completion Nikolai Weibull
2011-03-18 21:35 ` [PATCH 1/4] Fix typo Nikolai Weibull
2011-03-18 21:35 ` Nikolai Weibull [this message]
2011-03-18 21:35 ` [PATCH 3/4] Fix git-branch -[dD] -r completion Nikolai Weibull
2011-03-18 22:26   ` Frank Terbeck
2011-03-19  2:55     ` Benjamin R. Haskell
2011-03-19  8:21       ` Frank Terbeck
2011-03-19  9:10     ` Nikolai Weibull
2011-03-19  9:29       ` Frank Terbeck
2011-03-19 13:19       ` Benjamin R. Haskell
2011-05-29 15:10         ` Nikolai Weibull
2011-03-18 21:35 ` [PATCH 4/4] Fix typo in git-send-email completion Nikolai Weibull
2011-03-18 22:43 ` Small patches o git completion Frank Terbeck
2011-03-19 22:15 ` Simon Ruderich
2011-04-15 14:08   ` Simon Ruderich
2011-04-15 14:24     ` Nikolai Weibull
2011-04-15 14:37       ` Mikael Magnusson
2011-04-15 14:44         ` Nikolai Weibull
2011-04-15 14:49           ` Mikael Magnusson
2011-05-02  8:16             ` [PATCH] Fix -l option for git-tag completion Nikolai Weibull
2011-05-12 16:02               ` Mikael Magnusson
2011-04-15 14:45     ` Small patches o git completion 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=1300484112-9392-3-git-send-email-now@bitwi.se \
    --to=now@bitwi.se \
    --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).