diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2007-05-31 23:32:54 -0400 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2007-05-31 23:32:54 -0400 |
| commit | b8848f7753762ff8c4e34b3c15e788c5f7e6781f (patch) | |
| tree | 3eebe3b6357b574c9d2c7d69b260d37f2cf93dde /lib/diff.tcl | |
| parent | 905d9c9653a7dc324a1c6fbf883a1b9bcdc6e5bf (diff) | |
| download | git-b8848f7753762ff8c4e34b3c15e788c5f7e6781f.tar.gz | |
git-gui: Allow as few as 0 lines of diff context
Johannes Sixt pointed out that dropping to 0 lines of context
does allow the user to get more fine-grained hunk selection,
especially since we don't currently support "highlight and
apply (or revert)".
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/diff.tcl')
| -rw-r--r-- | lib/diff.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diff.tcl b/lib/diff.tcl index 7e715a6865..29436b50cb 100644 --- a/lib/diff.tcl +++ b/lib/diff.tcl @@ -145,7 +145,7 @@ proc show_diff {path w {lno {}}} { lappend cmd -p lappend cmd --no-color - if {$repo_config(gui.diffcontext) > 0} { + if {$repo_config(gui.diffcontext) >= 0} { lappend cmd "-U$repo_config(gui.diffcontext)" } if {$w eq $ui_index} { |
