From: Junio C Hamano Date: Wed, 27 Jul 2011 15:37:33 GMT Subject: Re: [RFC/PATCH] commit: allow partial commits with relative paths Message-ID: <7vfwlrpwea.fsf@alter.siamese.dyndns.org> In-Reply-To: <4E2FCAC4.7020408@drmicha.warpmail.net> Michael J Gruber 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).