From: Sverre Rabbelier Date: Sun, 06 Nov 2011 20:42:28 GMT Subject: Re: [PATCH] Add abbreviated commit hash to rebase conflict message Message-ID: In-Reply-To: <7vaa89573r.fsf@alter.siamese.dyndns.org> Heya, On Sun, Nov 6, 2011 at 21:27, Junio C Hamano wrote: > In what situation does it make sense to say "It came from _this_ commit"? > > I think there is a separate variable that allows any part of the script if > we are being run as a backend of rebase or not, and that is the condition > you are looking for. The closest I could find is: if test -f "$dotest/rebasing" Which is exactly the case when commit is set. Do you prefer the "-f $dotest/rebasing" test or the "-n $commit" one? -- Cheers, Sverre Rabbelier