summaryrefslogtreecommitdiff
path: root/unpack-objects.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-04-12 11:45:18 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-04-12 11:45:18 -0700
commit475443c8489d9167b944367d8ec8bfef77bee0a5 (patch)
treef7af3152e028708b74690a228915671fd3a7f774 /unpack-objects.c
parentWhen showing a commit message, do not lose an incomplete line. (diff)
downloadtgif-475443c8489d9167b944367d8ec8bfef77bee0a5.tar.xz
git-commit: do not muck with commit message when no_edit is set.
Spotted by Linus and Darrin Thompson. When we took a commit message from -F <file> with an incomplete line, we appended "git status" output, which ended up attaching a lone "#" at the end. We still need the "do we have anything to commit?" check by running "status" (which has to know what to do in different cases with -i/-o/-a), but there is no point appending its output to the proposed commit message given by the user. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'unpack-objects.c')
0 files changed, 0 insertions, 0 deletions