summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam Piątyszek <ediap@users.sourceforge.net>2008-03-06 19:38:40 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2008-03-08 01:59:35 (GMT)
commit11027d544b4f6aed0b84111a2122224cd201a182 (patch)
treeac17508d8ab518f5d7ff29f57b64eb766bcb8f78 /lib
parentc382fdd79548a56fadf8f34d3484cf020eda3966 (diff)
downloadgit-11027d544b4f6aed0b84111a2122224cd201a182.zip
git-11027d544b4f6aed0b84111a2122224cd201a182.tar.gz
git-11027d544b4f6aed0b84111a2122224cd201a182.tar.bz2
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 <ediap@users.sourceforge.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/option.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/option.tcl b/lib/option.tcl
index ea80df0..9270512 100644
--- a/lib/option.tcl
+++ b/lib/option.tcl
@@ -124,6 +124,7 @@ proc do_options {} {
{b gui.pruneduringfetch {mc "Prune Tracking Branches During Fetch"}}
{b gui.matchtrackingbranch {mc "Match Tracking Branches"}}
{i-0..99 gui.diffcontext {mc "Number of Diff Context Lines"}}
+ {i-0..99 gui.commitmsgwidth {mc "Commit Message Text Width"}}
{t gui.newbranchtemplate {mc "New Branch Name Template"}}
} {
set type [lindex $option 0]