On Mon, Aug 15, 2016 at 11:45 PM, Duy Nguyen <pclouds@xxxxxxxxx> wrote: > On Tue, Aug 16, 2016 at 12:26 PM, Jacob Keller <jacob.keller@xxxxxxxxx> wrote: >>>> They can just add "squash! cover! <series>" commits for that ;-) Though more >>>> likely the advanced workflow would be used... We'll need both (more than >>>> one) options. >>> >>> Or even better, "git commit --reword $SHA1" brings up the editor with >>> commit message of $SHA1. Modify any way you want and it creates a new >>> empty, "reword!" commit that contains the diff between the old commit >>> message and the new one. "reword!" can be consumed by "rebase -i >>> --autosquash" without bringing up the editor again. I realize making >>> "git commit --reword" run multiple times would be tricky though... >> >> I was just thinking you write text and it gets appended to the text of >> the reworded commit, and when you squash them using rebase you get to >> finalize it like a normal squash? > > I think that's what Phillip meant by 'squash! cover!' though I wanted > to go further, I don't want an editor popping up at rebase time, > instead 'rebase' just update cover letter automatically for me. > -- > Duy Maybe teach it some sort of "reword! cover!" which pops up an editor and you can edit to your hearts content, and it just saves the "new" message. Since there is no such thing as a diff on message contents, it would just be a complete replace for the new message (obviously we would then strip reword and cover part out but otherwise leave the rest in place so rebase machinery would be able to fix it up without you having to edit it a second time in the rebase process? That doesn't seem as complicated as somehow storing a new diff format for the cover letter. Not sure how to handle several in a row though. Thanks, Jake -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html