]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.h
merge: cleanup messages like commit
authorDenton Liu <liu.denton@gmail.com>
Wed, 17 Apr 2019 10:23:27 +0000 (11:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Apr 2019 04:49:29 +0000 (13:49 +0900)
commitd540b70c85ccd08507348785fd210ef8317a864d
tree8878e04d0d1ed6255dc880fe5753cbeee94b7699
parentca04dc96d13cbe5aead17a936e3b8695b20abb55
merge: cleanup messages like commit

This change allows git-merge messages to be cleaned up with the
commit.cleanup configuration or --cleanup option, just like how
git-commit does it.

We also give git-pull the option of --cleanup so that it can also take
advantage of this change.

Finally, add testing to ensure that messages are properly cleaned up.
Note that some newlines that were added to the commit message were
removed so that if a file were read via -F, it would be copied
faithfully.

Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/merge-options.txt
builtin/merge.c
builtin/pull.c
t/t5521-pull-options.sh
t/t7604-merge-custom-message.sh
wt-status.c
wt-status.h