From: Bernt Hansen Date: Fri, 28 Dec 2007 02:15:56 +0000 (-0500) Subject: git-gui: Make commit log messages end with a newline X-Git-Tag: gitgui-0.9.1^0 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a6d5888fa1bb24ef34ce36f0e684d13a58eba908;p=git.git 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 Signed-off-by: Shawn O. Pearce --- diff --git a/lib/commit.tcl b/lib/commit.tcl index b2d2d5308..1c0586c40 100644 --- a/lib/commit.tcl +++ b/lib/commit.tcl @@ -303,7 +303,7 @@ A rescan will be automatically started now. puts stderr [mc "warning: Tcl does not support encoding '%s'." $enc] fconfigure $msg_wt -encoding utf-8 } - puts -nonewline $msg_wt $msg + puts $msg_wt $msg close $msg_wt # -- Create the commit.