Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ set default_config(gui.blamehistoryctx) 7
set default_config(gui.diffcontext) 5
set default_config(gui.diffopts) {}
set default_config(gui.commitmsgwidth) 75
set default_config(gui.commitmsgwrap) false
set default_config(gui.newbranchtemplate) {}
set default_config(gui.spellingdictionary) {}
set default_config(gui.fontui) [font configure font_ui]
Expand Down Expand Up @@ -3504,6 +3505,12 @@ if {![is_enabled nocommit]} {
pack .vpane.lower.commarea.buffer.header.amend -side right
}

if {$repo_config(gui.commitmsgwrap)} {
set comm_wrap word
} else {
set comm_wrap none
}

textframe .vpane.lower.commarea.buffer.frame
ttext $ui_comm \
-borderwidth 1 \
Expand All @@ -3513,7 +3520,7 @@ ttext $ui_comm \
-takefocus 1 \
-highlightthickness 1 \
-relief sunken \
-width $repo_config(gui.commitmsgwidth) -height 9 -wrap none \
-width $repo_config(gui.commitmsgwidth) -height 9 -wrap $comm_wrap \
-font font_diff \
-xscrollcommand {.vpane.lower.commarea.buffer.frame.sbx set} \
-yscrollcommand {.vpane.lower.commarea.buffer.frame.sby set}
Expand Down
1 change: 1 addition & 0 deletions lib/option.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ proc do_options {} {
{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"}}
{b gui.commitmsgwrap {mc "Commit Message Wrap Lines"}}
{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"}}
Expand Down
Loading