Skip to content

Commit a6d5888

Browse files
Bernt Hansenspearce
authored andcommitted
git-gui: Make commit log messages end with a newline
Concatenating commit log messages from multiple commits works better when all of the commits end with a clean line break. Its good to be strict in what you create, and lenient in what you accept, and since we're creating here, we should always try to Do The Right Thing(tm). Signed-off-by: Bernt Hansen <bernt@alumni.uwaterloo.ca> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent f0e8692 commit a6d5888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commit.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ A rescan will be automatically started now.
303303
puts stderr [mc "warning: Tcl does not support encoding '%s'." $enc]
304304
fconfigure $msg_wt -encoding utf-8
305305
}
306-
puts -nonewline $msg_wt $msg
306+
puts $msg_wt $msg
307307
close $msg_wt
308308

309309
# -- Create the commit.

0 commit comments

Comments
 (0)