Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC/PATCH] commit: allow partial commits with relative paths

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:40

Michael J Gruber [off-list ref] writes:
git rm ../a
git add ../a
fatal: pathspec 'a' did not match any files
If you didn't have that ../a from the beginning, wouldn't you get the same
error message? Or instead of "git add ../a", you did "(cd .. && git add a)"
what message do (and more importantly "should") you get?

I think it would be an improvement if we said "../a" in the message, but
otherwise I agree with you that there is no bug here.

A side note. If this didn't work:

    $ git rm --cached ../a
    $ git add ../a

I would suspect that would be a bug (this however seems to work).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help