Merge branch 'master' of https://github.com/j6t/git-gui
* 'master' of https://github.com/j6t/git-gui: git-gui: treat the message template file as a built file git-gui: heed core.commentChar/commentString git-gui: po/README: update repository location and maintainer
This commit is contained in:
@@ -211,7 +211,9 @@ You must stage at least 1 file before you can commit.
|
||||
# Strip trailing whitespace
|
||||
regsub -all -line {[ \t\r]+$} $msg {} msg
|
||||
# Strip comment lines
|
||||
regsub -all {(^|\n)#[^\n]*} $msg {\1} msg
|
||||
global comment_string
|
||||
set cmt_rx [strcat {(^|\n)} [regsub -all {\W} $comment_string {\\&}] {[^\n]*}]
|
||||
regsub -all $cmt_rx $msg {\1} msg
|
||||
# Strip leading empty lines
|
||||
regsub {^\n*} $msg {} msg
|
||||
# Compress consecutive empty lines
|
||||
|
||||
Reference in New Issue
Block a user