git annex add silently ignores non-existent files

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


Richard Hartmann wrote:
> On Sat, Dec 24, 2011 at 15:44, Joey Hess <joey at kitenet.net> 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
git:

joey at gnu:~/src/other/git>git ls-files --error-unmatch --others zlib.o zlib.c
zlib.o
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: <http://lists.madduck.net/pipermail/vcs-home/attachments/20111227/08149ccf/attachment.pgp>


More information about the vcs-home mailing list