From f8f845bfedde042953e07c796272b6fd2a0c1274 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 1 Jul 2007 16:55:05 +0000 Subject: 23627: merge in from Nikolai Weibull's repository fixes for git hash-object, index-pack, merge-index. --- Completion/Unix/Command/_git | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index a1a48794e..d6c9da724 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -271,17 +271,18 @@ _git-commit-tree () { _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 @@ _git-merge-index () { 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 -- cgit 1.4.1