From: Reuben Thomas Date: Wed, 27 Jul 2011 10:00:51 GMT Subject: Re: [RFC/PATCH] commit: allow partial commits with relative paths Message-ID: In-Reply-To: <4E2FE024.2030204@drmicha.warpmail.net> On 27 July 2011 10:53, Michael J Gruber wrote: > Reuben Thomas venit, vidit, dixit 27.07.2011 11:45: >> >> $ cat ~/reportbug-git >> $ git rm -f ../INSTALL >> rm 'INSTALL' >> $ git ci -m "INSTALL is now provided by gnulib." ../INSTALL >> error: pathspec 'ALL' did not match any file(s) known to git. >> $ cd .. >> $ git ci -m "INSTALL is now provided by gnulib." INSTALL >> [master 0895314] INSTALL is now provided by gnulib. >>  1 files changed, 0 insertions(+), 1 deletions(-) >>  delete mode 120000 INSTALL >> >> The thing I didn't understand is that I tried to check in ../INSTALL, >> but git complained about pathspec 'ALL'. > > Well, you didn't say so, did you? > > Also, we don't know what subdir you were doing this in, but I bet it has > a 7-character name... Its name was "src". > I can't reproduce that name truncation with a current git, btw. Thanks for testing that. > In any case, I still think git should allow partial commits with staged > deletions from within a subdir, which is what my patch is about. Absolutely, this looks useful. -- http://rrt.sc3d.org