From: Junio C Hamano Date: Tue, 13 Nov 2012 16:34:49 GMT Subject: Re: Commit message problem of reverting multiple commits Message-ID: <7vd2zhfoly.fsf@alter.siamese.dyndns.org> In-Reply-To: 乙酸鋰 writes: > I ran git 1.8.0 command line > > git revert --no-commit rev1 rev2 > > I see a prepared commit message like > > Revert "" > This reverts commit . > > > The actual revert content is correct - it is all the relevant commits > that were selected. I expect the message to reflect this: > > Revert "", "" > This reverts commits , . Hrmph. I actually think the revert-content is not correct. I think the command should not take more than one commit on the command line when --no-commit is in use in the first place (the same thing can be said for cherry-pick). After all, "git revert rev1 rev2" is to revert rev1 and then rev2 independently, so unless that option is spelled "--squash", the resulting history should have two commits that reverts rev1 and rev2 independently.