diff options
| author | Johannes Sixt <j6t@kdbg.org> | 2025-04-20 09:27:22 +0200 |
|---|---|---|
| committer | Johannes Sixt <j6t@kdbg.org> | 2025-04-20 09:27:22 +0200 |
| commit | 2a7d4f2f078a8a10f866c723765c2f1c4f76d448 (patch) | |
| tree | 10d54bc374227789528a2279054b8b12c39a7724 /git-gui.sh | |
| parent | ae6336b6173bf5303fad53e0a52a16f92c47b6b7 (diff) | |
| parent | 6b43a57dfce1e5acd85f7a8365c080b6fc4f8645 (diff) | |
| download | git-2a7d4f2f078a8a10f866c723765c2f1c4f76d448.tar.xz | |
Merge branch 'ob/strip-comments-on-commit'
* ob/strip-comments-on-commit:
git-gui: heed core.commentChar/commentString
Diffstat (limited to 'git-gui.sh')
| -rwxr-xr-x | git-gui.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index 887d6d596c..28572c889c 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -880,6 +880,12 @@ proc apply_config {} { color::sync_with_theme } } + + global comment_string + set comment_string [get_config core.commentstring] + if {$comment_string eq {}} { + set comment_string [get_config core.commentchar] + } } set default_config(branch.autosetupmerge) true @@ -890,6 +896,8 @@ set default_config(merge.summary) false set default_config(merge.verbosity) 2 set default_config(user.name) {} set default_config(user.email) {} +set default_config(core.commentchar) "#" +set default_config(core.commentstring) {} set default_config(gui.encoding) [encoding system] set default_config(gui.matchtrackingbranch) false |
