@matheusbsbs / matheus-bagliano / commits / a6d5888fa1
Fork 0

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>

Bernt Hansen committed Dec 27, 2007 at 21:15 UTC a6d5888fa1bb24ef34ce36f0e684d13a58eba908
1 file changed +1 -1
lib/commit.tcl
+1 -1
@@ -303,7 +303,7 @@ A rescan will be automatically started now.
303 puts stderr [mc "warning: Tcl does not support encoding '%s'." $enc]
304 fconfigure $msg_wt -encoding utf-8
305 }
306 - puts -nonewline $msg_wt $msg
306 + puts $msg_wt $msg
307 close $msg_wt
308
309 # -- Create the commit.