{"thread":{"id":"54467","subject":"Is cover letter can save changes?","startedAt":"2020-10-20T07:05:53Z","lastAt":"2020-10-20T19:21:35Z","messageCount":3,"participants":["fuyao","Pratyush Yadav","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"407962","messageId":"20201020070547.GI9517@g8Exdroid64","threadId":"54467","inReplyTo":null,"subject":"Is cover letter can save changes?","fromName":"fuyao","fromEmail":"fuyao@allwinnertech.com","sentAt":"2020-10-20T07:05:47Z","receivedAt":"2020-10-20T07:05:53Z","isPatch":false,"sender":{"key":"fuyao@allwinnertech.com","avatar":null},"body":"Hi:\n   i have question about format-patch.\n\n   when use git format-patch with --cover-letter, we add information\n   in the cover letter. and then, i must send patch with -v2, the\n   information in the cover letter is lost in the v2 patch.\n\n   i found git notes can note things, but it add in patch not\n   cover letter. is some operate can do to save in cover letter.\n\n   and the git note record with commit, when amend it can lost note,\n   is the rewrite error?\n-- \nNimflorie frostades seda!\n"},{"id":"407969","messageId":"873629fb6c.fsf@yadavpratyush.com","threadId":"54467","inReplyTo":"20201020070547.GI9517@g8Exdroid64","subject":"Re: Is cover letter can save changes?","fromName":"Pratyush Yadav","fromEmail":"me@yadavpratyush.com","sentAt":"2020-10-20T10:23:39Z","receivedAt":"2020-10-20T10:23:46Z","isPatch":false,"sender":{"key":"me@yadavpratyush.com","avatar":"https://avatars.githubusercontent.com/u/8817931?v=4"},"body":"On Tue, Oct 20 2020, fuyao wrote:\n\n> Hi:\n>    i have question about format-patch.\n>\n>    when use git format-patch with --cover-letter, we add information\n>    in the cover letter. and then, i must send patch with -v2, the\n>    information in the cover letter is lost in the v2 patch.\n>\n>    i found git notes can note things, but it add in patch not\n>    cover letter. is some operate can do to save in cover letter.\n\nYou can try using `git branch --edit-description <branch_name>` and\nwrite the contents of the cover letter there. Then you can use the\noption `--cover-from-description` to use the branch description when\ngenerating the cover letter.\n\n>    and the git note record with commit, when amend it can lost note,\n>    is the rewrite error?\n\nHave you set the config `notes.rewriteRef` to your notes ref?\n\n-- \nRegards,\nPratyush Yadav\n"},{"id":"408000","messageId":"xmqqmu0gbt51.fsf@gitster.c.googlers.com","threadId":"54467","inReplyTo":"873629fb6c.fsf@yadavpratyush.com","subject":"Re: Is cover letter can save changes?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2020-10-20T19:21:30Z","receivedAt":"2020-10-20T19:21:35Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Pratyush Yadav <me@yadavpratyush.com> writes:\n\n> On Tue, Oct 20 2020, fuyao wrote:\n>\n>> Hi:\n>>    i have question about format-patch.\n>>\n>>    when use git format-patch with --cover-letter, we add information\n>>    in the cover letter. and then, i must send patch with -v2, the\n>>    information in the cover letter is lost in the v2 patch.\n> ...\n> You can try using `git branch --edit-description <branch_name>` and\n> write the contents of the cover letter there. Then you can use the\n> option `--cover-from-description` to use the branch description when\n> generating the cover letter.\n\nAnother thing people are encouraged to do is to use the -o option to\nstore iterations of your series on disk, perhaps in the same\ndirectory.  When you edit v2-0000-cover-letter.txt file, you can\nthen reference the previous one you've already sent easily that way.\n"}]}