Re: git annex add silently ignores non-existent files

2012-03-01 Thread Richard Hartmann
On Sat, Feb 25, 2012 at 16:19, Adam Spiers  wrote:

> Did you draw any conclusions from this?  Thanks :)

I never got a definite answer, sorry.


Richard
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

Re: git annex add silently ignores non-existent files

2012-02-25 Thread Adam Spiers
On Tue, Dec 27, 2011 at 5:10 PM, Richard Hartmann
 wrote:
> On Tue, Dec 27, 2011 at 16:51, Joey Hess  wrote:
>
>> joey@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'?
>
> I am 99% sure this is a bug; investigating.

Did you draw any conclusions from this?  Thanks :)
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home


Re: git annex add silently ignores non-existent files

2011-12-27 Thread Richard Hartmann
On Tue, Dec 27, 2011 at 16:51, Joey Hess  wrote:

> joey@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'?

I am 99% sure this is a bug; investigating.


Richard
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home


Re: git annex add silently ignores non-existent files

2011-12-27 Thread Joey Hess
Richard Hartmann wrote:
> On Sat, Dec 24, 2011 at 15:44, Joey Hess  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@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


signature.asc
Description: Digital signature
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

Re: git annex add silently ignores non-existent files

2011-12-27 Thread Richard Hartmann
On Sat, Dec 24, 2011 at 15:44, Joey Hess  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 ?


Richard
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home


Re: git annex add silently ignores non-existent files

2011-12-24 Thread Joey Hess
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@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


signature.asc
Description: Digital signature
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

git annex add silently ignores non-existent files

2011-12-23 Thread Adam Spiers
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).
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home