path: root/
diff options
authorAdam Piątyszek <>2008-03-06 19:38:40 (GMT)
committerShawn O. Pearce <>2008-03-08 01:59:35 (GMT)
commit11027d544b4f6aed0b84111a2122224cd201a182 (patch)
treeac17508d8ab518f5d7ff29f57b64eb766bcb8f78 /
parentc382fdd79548a56fadf8f34d3484cf020eda3966 (diff)
git-gui: Add option for changing the width of the commit message text box
The width of the commit message text area is currently hard-coded to 75 characters. This value might be not optimal for some projects. For instance users who would like to generate GNU-style ChangeLog file from git commit message might prefer commit messages of width no longer than 70 characters. This patch adds a global and per repository option "Commit Message Text Width", which could be used to change the width of the commit message text area. Signed-off-by: Adam Piątyszek <> Signed-off-by: Shawn O. Pearce <>
Diffstat (limited to '')
1 files changed, 2 insertions, 1 deletions
diff --git a/ b/
index 8741443..3a58cd2 100755
--- a/
+++ b/
@@ -611,6 +611,7 @@ set default_config(gui.matchtrackingbranch) false
set default_config(gui.pruneduringfetch) false
set default_config(gui.trustmtime) false
set default_config(gui.diffcontext) 5
+set default_config(gui.commitmsgwidth) 75
set default_config(gui.newbranchtemplate) {}
set default_config(gui.spellingdictionary) {}
set default_config(gui.fontui) [font configure font_ui]
@@ -2424,7 +2425,7 @@ text $ui_comm -background white -foreground black \
-maxundo 20 \
-autoseparators true \
-relief sunken \
- -width 75 -height 9 -wrap none \
+ -width $repo_config(gui.commitmsgwidth) -height 9 -wrap none \
-font font_diff \
-yscrollcommand {.vpane.lower.commarea.buffer.sby set}
scrollbar .vpane.lower.commarea.buffer.sby \