{"thread":{"id":"32098","subject":"Commit message problem of reverting multiple commits","startedAt":"2012-11-13T15:15:59Z","lastAt":"2012-11-13T16:34:49Z","messageCount":2,"participants":["乙酸鋰","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"203088","messageId":"CAHtLG6Qn68TFVnd_8LSf6OMqHZduAFgk0Hd46E3vKgFHCjpksQ@mail.gmail.com","threadId":"32098","inReplyTo":null,"subject":"Commit message problem of reverting multiple commits","fromName":"乙酸鋰","fromEmail":"ch3cooli@gmail.com","sentAt":"2012-11-13T15:15:59Z","receivedAt":"2012-11-13T15:15:59Z","isPatch":false,"sender":{"key":"ch3cooli@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2804967?v=4"},"body":"Hi,\n\nI ran git 1.8.0 command line\n\ngit revert --no-commit rev1 rev2\n\nI see a prepared commit message like\n\nRevert \"<description from one commit>\"\nThis reverts commit <SHA1 of one commit>.\n\n\nThe actual revert content is correct - it is all the relevant commits\nthat were selected. I expect the message to reflect this:\n\nRevert \"<description from commit1>\", \"<description from commit2>\"\nThis reverts commits <SHA1 of commit1>, <SHA1 of commit2>.\n\nRegards,\nch3cooli\n"},{"id":"203104","messageId":"7vd2zhfoly.fsf@alter.siamese.dyndns.org","threadId":"32098","inReplyTo":"CAHtLG6Qn68TFVnd_8LSf6OMqHZduAFgk0Hd46E3vKgFHCjpksQ@mail.gmail.com","subject":"Re: Commit message problem of reverting multiple commits","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-11-13T16:34:49Z","receivedAt":"2012-11-13T16:34:49Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"乙酸鋰 <ch3cooli@gmail.com> writes:\n\n> I ran git 1.8.0 command line\n>\n> git revert --no-commit rev1 rev2\n>\n> I see a prepared commit message like\n>\n> Revert \"<description from one commit>\"\n> This reverts commit <SHA1 of one commit>.\n>\n>\n> The actual revert content is correct - it is all the relevant commits\n> that were selected. I expect the message to reflect this:\n>\n> Revert \"<description from commit1>\", \"<description from commit2>\"\n> This reverts commits <SHA1 of commit1>, <SHA1 of commit2>.\n\nHrmph.  I actually think the revert-content is not correct.\n\nI think the command should not take more than one commit on the\ncommand line when --no-commit is in use in the first place (the same\nthing can be said for cherry-pick).  After all, \"git revert rev1\nrev2\" is to revert rev1 and then rev2 independently, so unless that\noption is spelled \"--squash\", the resulting history should have two\ncommits that reverts rev1 and rev2 independently.\n"}]}