zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
@ 2010-03-21 17:23 Simon Ruderich
  2010-03-21 19:48 ` Benjamin R. Haskell
  0 siblings, 1 reply; 15+ messages in thread
From: Simon Ruderich @ 2010-03-21 17:23 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 979 bytes --]

Hi,

Maybe it should be checked if FETCH_HEAD, ORIG_HEAD and
MERGE_HEAD exist before completing them, but I'm not sure how to
that.

Simon
---
 Completion/Unix/Command/_git |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index d7570cc..dbc3dae 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -3125,7 +3125,7 @@ __git_heads () {
   branch_names=(${${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname)"' refs/heads refs/remotes 2>/dev/null)"}#refs/(heads|remotes)/})
   __git_command_successful || return

-  _wanted heads expl branch-name compadd $* - $branch_names HEAD
+  _wanted heads expl branch-name compadd $* - $branch_names HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD
 }

 (( $+functions[__git_tags] )) ||
-- 
1.7.0.2

-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-05-03 15:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-21 17:23 [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD Simon Ruderich
2010-03-21 19:48 ` Benjamin R. Haskell
2010-03-21 20:17   ` Nikolai Weibull
2010-03-22  1:25     ` Simon Ruderich
2010-03-22  2:30       ` Benjamin R. Haskell
2010-03-22  9:27         ` Nikolai Weibull
2010-03-29  0:07           ` Simon Ruderich
2010-05-01  8:28             ` Simon Ruderich
2010-05-01 10:46               ` Frank Terbeck
2010-05-01 12:12                 ` Simon Ruderich
2010-05-01 12:17                   ` Frank Terbeck
2010-05-01 20:32                     ` Simon Ruderich
2010-05-02  9:04                       ` Frank Terbeck
2010-05-03 14:51                         ` Benjamin R. Haskell
2010-03-29 13:56           ` Benjamin R. Haskell

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).