Re: [RFC/PATCH] commit: allow partial commits with relative paths
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 27, 2011, 15:37 UTC
- Message-ID
- <7vfwlrpwea.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4E2FCAC4.7020408@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> 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 ../aI would suspect that would be a bug (this however seems to work).