diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2007-05-31 23:34:24 -0400 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2007-05-31 23:34:24 -0400 |
| commit | 71a9db534a6bb4a6e9824c01b557a96ccaae0e89 (patch) | |
| tree | 8ab2a8437233dd6591593672d6e18d57d5cee43c /git-gui.sh | |
| parent | a1388cf0361b133deaba5266211a34bdec66b7cc (diff) | |
| parent | b8848f7753762ff8c4e34b3c15e788c5f7e6781f (diff) | |
| download | git-71a9db534a6bb4a6e9824c01b557a96ccaae0e89.tar.xz | |
Merge branch 'maint'
* maint:
git-gui: Allow as few as 0 lines of diff context
Diffstat (limited to 'git-gui.sh')
| -rwxr-xr-x | git-gui.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-gui.sh b/git-gui.sh index f87c12ea88..3bd12d20b5 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -2071,17 +2071,17 @@ lappend diff_actions [list $ctxm entryconf [$ctxm index last] -state] $ctxm add separator $ctxm add command \ -label {Show Less Context} \ - -command {if {$repo_config(gui.diffcontext) >= 2} { + -command {if {$repo_config(gui.diffcontext) >= 1} { incr repo_config(gui.diffcontext) -1 reshow_diff }} lappend diff_actions [list $ctxm entryconf [$ctxm index last] -state] $ctxm add command \ -label {Show More Context} \ - -command { + -command {if {$repo_config(gui.diffcontext) < 99} { incr repo_config(gui.diffcontext) reshow_diff - } + }} lappend diff_actions [list $ctxm entryconf [$ctxm index last] -state] $ctxm add separator $ctxm add command -label {Options...} \ |
