{"thread":{"id":"12692","subject":"How about cherry-pick --squash?","startedAt":"2008-03-14T15:15:32Z","lastAt":"2008-03-14T15:32:08Z","messageCount":3,"participants":["Ping Yin","Sean"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"72090","messageId":"46dff0320803140815q5a342f5fjdde02c6b5fde4e5f@mail.gmail.com","threadId":"12692","inReplyTo":null,"subject":"How about cherry-pick --squash?","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-03-14T15:15:32Z","receivedAt":"2008-03-14T15:15:32Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"Sometimes i want to cherry pick a commit, but i don't want the commit\nmessage of this commit. What i  want is the patch corresponding to\nthis commit to be squashed to the top commit?\n\nNow i have to type\n\ngit format-patch -1 --stdout  <sha1> | git apply --index && git commit --amend\n\nHow about\n\ngit cherry-pick --squash <sha1>\n\n-- \nPing Yin\n"},{"id":"72094","messageId":"BAYC1-PASMTP015BC6B5B35F790E097CBEAE0A0@CEZ.ICE","threadId":"12692","inReplyTo":"46dff0320803140815q5a342f5fjdde02c6b5fde4e5f@mail.gmail.com","subject":"Re: How about cherry-pick --squash?","fromName":"Sean","fromEmail":"seanlkml@sympatico.ca","sentAt":"2008-03-14T15:25:01Z","receivedAt":"2008-03-14T15:25:01Z","isPatch":false,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"On Fri, 14 Mar 2008 23:15:32 +0800\n\"Ping Yin\" <pkufranky@gmail.com> wrote:\n\n> Sometimes i want to cherry pick a commit, but i don't want the commit\n> message of this commit. What i  want is the patch corresponding to\n> this commit to be squashed to the top commit?\n> \n> Now i have to type\n> \n> git format-patch -1 --stdout  <sha1> | git apply --index && git commit --amend\n\n\nHi Ping,\n\nThere is an easier way:\n\n$  git cherry-pick -n <sha1>\n$  git commit -a --amend\n\nHTH,\nSean\n"},{"id":"72102","messageId":"46dff0320803140832x596047c0yb5c81f0f9b8d186d@mail.gmail.com","threadId":"12692","inReplyTo":"BAYC1-PASMTP015BC6B5B35F790E097CBEAE0A0@CEZ.ICE","subject":"Re: How about cherry-pick --squash?","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-03-14T15:32:08Z","receivedAt":"2008-03-14T15:32:08Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On Fri, Mar 14, 2008 at 11:25 PM, Sean <seanlkml@sympatico.ca> wrote:\n> On Fri, 14 Mar 2008 23:15:32 +0800\n>  \"Ping Yin\" <pkufranky@gmail.com> wrote:\n>\n>\n>  There is an easier way:\n>\n>  $  git cherry-pick -n <sha1>\n>  $  git commit -a --amend\n>\nThanks, it's simpler.\n\n\n\n-- \nPing Yin\n"}]}