git annex add silently ignores non-existent files

Joey Hess joey at
Tue Dec 27 16:51:20 CET 2011

Richard Hartmann wrote:
> On Sat, Dec 24, 2011 at 15:44, Joey Hess <joey at> wrote:
> > Since using git-ls-files is so convenient in most ways, all I can
> > think to do about this is document it.
> --error-unmatch ?

Produces a strange error message if run on files that are already in

joey at gnu:~/src/other/git>git ls-files --error-unmatch --others zlib.o zlib.c
error: pathspec 'zlib.c' did not match any file(s) known to git.
Did you forget to 'git add'?

see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <>

More information about the vcs-home mailing list