Skip to content

Commit

Permalink
git-gui: Make commit log messages end with a newline
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bernt Hansen authored and Shawn O. Pearce committed Dec 30, 2007
1 parent f0e8692 commit a6d5888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commit.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a6d5888

Please sign in to comment.