glob escaping doesn't work with git mv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I tried using escaped globs with git mv, but globs don't seem to be
expanded with git mv.

So, for example, I've got files file1 & file2, and have been editing
them, so I've got file1~ and file2~ also, and *~ is in .gitignore.

If I do:

$ mkdir newdir
$ git mv file* newdir

I get a 'fatal: not in repository' error because I'm trying to move
untracked files.

Since we can do git add file\*, I tried:

$ git mv file\* newdir

I get a 'bad source, source=file* destination=file*' error. It seems
to be looking for a file named 'file*' rather than performing glob
expansion.

If I do:

$ rm *~
$ git mv file* newdir

Everything works as expected. It would be convenient if git mv
expanded escaped globs.

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]