Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _git-cat-file: Fix regression in 36237



This broke 'git cat-file blob origin:Etc/<TAB>'.

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index a096007..7409699 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -6008,6 +6008,7 @@ __git_tree_files () {
 
   if [[ $1 == --root-relative ]]; then
     extra_args+=(--full-tree)
+    shift
   fi
 
   zparseopts -D -E -a compadd_opts V: J: 1 2 n f X: M: P: S: r: R: q F:



Messages sorted by: Reverse Date, Date, Thread, Author