]> git.ipfire.org Git - thirdparty/git.git/commit
pretty: separate out the logic to decide the use of in-body from
authorJunio C Hamano <gitster@pobox.com>
Mon, 29 Aug 2022 21:38:35 +0000 (14:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Aug 2022 21:39:13 +0000 (14:39 -0700)
commitb84d01393679d0e09d6fd198e771f2d1f5563986
tree8a874f813852585ffea6819bc1072eabc208001b
parent07ee72db0e97b5c233f8ada0abb412248c2f1c6f
pretty: separate out the logic to decide the use of in-body from

When pretty-printing the log message for a given commit in the
e-mail format (e.g. "git format-patch"), we add an in-body "From:"
header when the author identity of the commit is different from the
identity of the person whose identity appears in the header of the
e-mail (the latter is passed with them "--from" option).

Split out the logic into a helper function, as we would want to
extend the condition further.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c