summaryrefslogtreecommitdiff
path: root/t/t7005-editor.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2016-06-29 16:14:42 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-29 14:56:37 -0700
commit84e213a30a1d4a3835e23b2f3d6217eb74ea55f7 (patch)
treec0294371210ad9c52f66c001be0b1e9a28e536a2 /t/t7005-editor.sh
parentcommit.c: make find_commit_subject() more robust (diff)
downloadtgif-84e213a30a1d4a3835e23b2f3d6217eb74ea55f7.tar.xz
commit -C: skip blank lines at the beginning of the message
Consistent with the pretty-printing machinery, we skip leading blank lines (if any) of existing commit messages. While Git itself only produces commit objects with a single empty line between commit header and commit message, it is legal to have more than one blank line (i.e. lines containing only white space, or no characters) at the beginning of the commit message, and the pretty-printing code already handles that. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7005-editor.sh')
0 files changed, 0 insertions, 0 deletions