diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-01-02 16:26:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-09 14:57:29 -0800 |
commit | 23aa51420cca7bee854f54e970206c00f3be0c86 (patch) | |
tree | bd8a97dffeb93d1d1a9c340f840c2a2a855fefff /credential-cache.c | |
parent | sequencer: move "else" keyword onto the same line as preceding brace (diff) | |
download | tgif-23aa51420cca7bee854f54e970206c00f3be0c86.tar.xz |
sequencer: use a helper to find the commit message
It is actually not safe to look for a commit message by looking for the
first empty line and skipping it.
The find_commit_subject() function looks more carefully, so let's use
it. Since we are interested in the entire commit message, we re-compute
the string length after verifying that the commit subject is not empty
(in which case the entire commit message would be empty, something that
should not happen but that we want to handle gracefully).
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential-cache.c')
0 files changed, 0 insertions, 0 deletions