git annex add silently ignores non-existent files
Joey Hess
joey at kitenet.net
Sat Dec 24 15:44:50 CET 2011
Adam Spiers wrote:
> git annex add this_file_does_not_exist
>
> does not result in a warning. This leads to confusing (lack of)
> behaviour in certain cases, e.g.
>
> generate_a_list_of_files_some_of_which_contain_spaces | xargs git annex add
>
> would silently fail to add the files containing spaces (because you'd
> need the -d or -0 switch to xargs to cope with this case).
This can indeed be confusing; it's a result of git-annex using
git-ls-files --others.
joey at gnu:~/src/other/git>git ls-files --others zlib.o fofofofoofof
zlib.o
Since using git-ls-files is so convenient in most ways, all I can
think to do about this is document it.
--
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/20111224/64f7738e/attachment.pgp>
More information about the vcs-home
mailing list