Since one day, I've been unable to complete argument filenames of git-mv
. So I've had to mv filename1 filename2
and then add git
at the head of the command. It's too much of a bother.
Today I found the casus of trouble and its solution. Put the following patch:
--- /usr/share/zsh/4.3.4/functions/_git.orig 2009-04-26 14:53:11.000000000 -0700
+++ /usr/share/zsh/4.3.4/functions/_git 2009-04-26 14:53:28.000000000 -0700
@@ -1160,7 +1160,7 @@
__git_files () {
local expl files
- files=("${(@f)$(git-ls-files 2>/dev/null)}")
+ files=("${(@f)$(git ls-files 2>/dev/null)}")
if (( $? == 0 )); then
_wanted files expl 'index file' _multi_parts $@ - / files
else
Obviously, the cause was the change of git subcommands' usage.
enjoy!
Anyway, did you send your patches to zsh maintainers?
ReplyDeletehttps://sourceforge.net/tracker/?func=detail&aid=2781862&group_id=4068&atid=304068
ReplyDelete:-)