zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _git fixes for hash-object, index-pack, merge-index
@ 2007-07-01 16:52 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-07-01 16:52 UTC (permalink / raw)
  To: zsh-workers

More from Nikolai Weibull's repo.

Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.9
diff -u -r1.9 _git
--- Completion/Unix/Command/_git	28 Jun 2007 15:24:16 -0000	1.9
+++ Completion/Unix/Command/_git	1 Jul 2007 16:51:30 -0000
@@ -271,17 +271,18 @@
 
 _git-hash-object () {
   _arguments \
+    '(:)--stdin[read object from standard input]' \
     '-t[the type of object to create]:object type:((blob\:"a blob of data"
                                                     commit\:"a tree with parent commits"
                                                     tag\:"a symbolic name for another object"
                                                     tree\:"a recursive tree of blobs"))' \
     '-w[write the object to the object database]' \
-    ':file:_files' && ret=0
+    '(--stdin):file:_files' && ret=0
 }
 
 _git-index-pack () {
   _arguments \
-    '-o[write generated pack index into specified file]' \
+    '-o[write generated pack index into specified file]:file:_files' \
     ':pack file:_files -g "*.pack"' && ret=0
 }
 
@@ -294,7 +295,7 @@
   if (( CURRENT > 2 )) && [[ $words[CURRENT-1] != -[oq] ]]; then
     _arguments -S \
       '(:)-a[run merge against all files in the index that need merging]' \
-      '*:index file:__git_files' && ret=0
+      '*:index file:__git_cached_files' && ret=0
   else
     typeset -a arguments
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-01 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-01 16:52 PATCH: _git fixes for hash-object, index-pack, merge-index Clint Adams

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