Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _git fixes for hash-object, index-pack, merge-index
- X-seq: zsh-workers 23627
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _git fixes for hash-object, index-pack, merge-index
- Date: Sun, 1 Jul 2007 12:52:52 -0400
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author