threads / patch / 19451

patchgitk: allow diff view without context lines

Subject: [PATCH] gitk: allow diff view without context lines

## tl;dr

2 messages between May 23, 2009 and May 24, 2009. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Markus Heidelberg· May 23, 2009, 17:31 UTC · lore
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
 gitk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Show changes to gitk +2 −2
diff --git a/gitk b/gitk
index 1855390..322a442 100755
--- a/gitk
+++ b/gitk
@@ -2145,7 +2145,7 @@ proc makewindow {} {
     label .bleft.mid.labeldiffcontext -text "      [mc "Lines of context"]: "
     pack .bleft.mid.diff .bleft.mid.old .bleft.mid.new -side left
     spinbox .bleft.mid.diffcontext -width 5 -font textfont \
-	-from 1 -increment 1 -to 10000000 \
+	-from 0 -increment 1 -to 10000000 \
 	-validate all -validatecommand "diffcontextvalidate %P" \
 	-textvariable diffcontextstring
     .bleft.mid.diffcontext set $diffcontext
@@ -7306,7 +7306,7 @@ proc diffcontextchange {n1 n2 op} {
     global diffcontextstring diffcontext
 
     if {[string is integer -strict $diffcontextstring]} {
-	if {$diffcontextstring > 0} {
+	if {$diffcontextstring >= 0} {
 	    set diffcontext $diffcontextstring
 	    reselectline
 	}
-- 
1.6.3.1.160.g45b30

← back to recent threads