diff options
| author | Clemens Buchacher <drizzd@aon.at> | 2008-08-30 18:45:27 +0200 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-09-01 12:45:46 -0700 |
| commit | 55ba8a3474102eb8d638834d2b9bfe58d5014a40 (patch) | |
| tree | 288d84848a2e6444663896f5318a6de1774ea23c /git-gui.sh | |
| parent | f2816b3d34ef93553b14a5fe23c48d092a74901f (diff) | |
| download | git-55ba8a3474102eb8d638834d2b9bfe58d5014a40.tar.xz | |
git gui: show diffs with a minimum of 1 context line
Staging hunks without context does not work, because line number
information would have to be recomputed for individual hunks.
Since it is already possible to stage individual lines using
'Stage Line for Commit', zero context diffs are not really
necessary for git gui.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
| -rwxr-xr-x | git-gui.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh index ad65aaad5a..86402d49f7 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -1932,7 +1932,7 @@ proc show_more_context {} { proc show_less_context {} { global repo_config - if {$repo_config(gui.diffcontext) >= 1} { + if {$repo_config(gui.diffcontext) > 1} { incr repo_config(gui.diffcontext) -1 reshow_diff } |
