summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorOrgad Shaneh <orgads@gmail.com>2025-07-13 23:59:38 +0300
committerOrgad Shaneh <orgads@gmail.com>2025-07-14 16:11:22 +0300
commitbfacf832b040885f876053244a75491b0dd792b6 (patch)
tree3dc90c0a9efca0fc1ce7b848b756db59490da770 /builtin/diff.c
parent3f072308447ed2aab0228d21a7ce334beeeca7e8 (diff)
git-gui: strip the commit message after running commit-msg hook
When commit-msg writes the file using CRLF, the lines in the final message include trailing spaces. Postpone stripping until after hooks execute. This aligns with Git's behavior, which passes the original message to commit-msg, then strips comments and whitespace. Signed-off-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'builtin/diff.c')
0 files changed, 0 insertions, 0 deletions