On Thu, Jun 30, 2022 at 11:35 PM Junio C Hamano <gitster@xxxxxxxxx> wrote: > > Christian Couder <christian.couder@xxxxxxxxx> writes: > > Have you tried `git interpret-trailers`? > > Do you mean a > > git fast-export | > git interpret-trailers | > git fast-import > > pipeline? I was thinking about using ways that are described a bit in the `git interpret-trailers` doc. And I was thinking about using ̀git rebase -i` and either adding "exec ..." lines to the todo list (possibly with `--exec ...` ) or maybe using "reword ..." About ways that are described in the `git interpret-trailers` doc, there is: * the following example with `git format-patch`: • Extract the last commit as a patch, and add a Cc and a Reviewed-by trailer to it: $ git format-patch -1 0001-foo.patch $ git interpret-trailers --trailer 'Cc: Alice <alice@xxxxxxxxxxx>' --trailer 'Reviewed-by: Bob <bob@xxxxxxxxxxx>' 0001-foo.patch >0001-bar.patch * the example with a commit-msg hook that uses git interpret-trailers BTW using interpret-trailers' --in-place option might be better than handling files the way it's done in both these examples.