Junio C Hamano <gitster@xxxxxxxxx> writes: > Alex Riesen <raa.lkml@xxxxxxxxx> writes: > >> Junio C Hamano, Sun, Nov 25, 2007 19:03:12 +0100: >>> Currently ce_path_match() only uses "the leading directory" match, and >>> does not understand file globs. These do not work: >>> >>> git diff-files 't/*.sh' >>> git diff-index HEAD 'xdiff/*.c' >>> git update-index -g 'Documentation/howto/*.txt' >> >> How should my scripts handle files with "*" in names? > ... > Having said that, I would think that quoting the meta from fnmatch(3) > like this: > > git ls-files 'such-\*-a-file' > > would work fine, just like > > ls such-\*-a-file > > would. Yup. I just did: $ >M\*kefile $ git add 'M\*kefile' $ git ls-files 'M\*kefile' M*kefile $ git ls-files 'M*kefile' M*kefile Makefile - 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