]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer: support cleaning up commit messages
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 21 Oct 2016 12:25:28 +0000 (14:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 16:32:34 +0000 (09:32 -0700)
commit0009426d6721a0356d41811aa34b4ac7f278a76e
tree5cd8229a0d4ad1a60a04a5bbc5938eccd29c4cc0
parent9240beda621dc0b4eec66f5ad9a8258c0f614e4c
sequencer: support cleaning up commit messages

The run_git_commit() function already knows how to amend commits, and
with this new option, it can also clean up commit messages (i.e. strip
out commented lines). This is needed to implement rebase -i's 'fixup'
and 'squash' commands as sequencer commands.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c