]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: allow larger width for the commit message field
authorAlexander Shopov <ash@kambanaria.org>
Fri, 19 Jun 2026 15:12:57 +0000 (17:12 +0200)
committerAlexander Shopov <ash@kambanaria.org>
Tue, 23 Jun 2026 17:48:05 +0000 (19:48 +0200)
Users may like to make the main window very wide. In this case, a rather
small size of the commit message field leaves a wide unused space at the
bottom-right. Allow settting the field width to values much larger than
99 characters. In fact, users can set it to extreme values to fill the
entire space regardless of window width: the widget geometry will be
negotiated to be limited to the available space despite the large
requested width.

Signed-off-by: Alexander Shopov <ash@kambanaria.org>
lib/option.tcl

index 487d70691d77d0ea3d18776160b8664293a730ca..43f79ff812ce4836fe482911dc569caa14a73630 100644 (file)
@@ -155,7 +155,7 @@ proc do_options {} {
                {i-0..300 gui.blamehistoryctx {mc "Blame History Context Radius (days)"}}
                {i-1..99 gui.diffcontext {mc "Number of Diff Context Lines"}}
                {t gui.diffopts {mc "Additional Diff Parameters"}}
-               {i-0..99 gui.commitmsgwidth {mc "Commit Message Text Width"}}
+               {i-0..9999 gui.commitmsgwidth {mc "Commit Message Text Width"}}
                {t gui.newbranchtemplate {mc "New Branch Name Template"}}
                {c gui.encoding {mc "Default File Contents Encoding"}}
                {b gui.warndetachedcommit {mc "Warn before committing to a detached head"}}