From: Michael J Gruber Date: Wed, 27 Jul 2011 15:50:52 GMT Subject: Re: [RFC/PATCH] commit: allow partial commits with relative paths Message-ID: <4E3033DC.6020103@drmicha.warpmail.net> In-Reply-To: <7vbowfpw8c.fsf@alter.siamese.dyndns.org> Junio C Hamano venit, vidit, dixit 27.07.2011 17:41: > Michael J Gruber writes: > >> The one reported by the OP for commit: >> >> git rm ../a >> git commit -m "blurb" ../a >> error: pathspec '../a' did not match any file(s) known to git. > > That does look like a bug given that (starting from a state where that > "../a" is a tracked file that appear in the HEAD commit): > > git rm ../a > (cd .. && git commit -m "removed a" a) > > does work. For "git add ../a" after removing the path from both index and > the working tree, see my other message. Full agreement on both. Now I really gotta run, sorry. But "I'll be back" :) Michael