git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitk: allow diff view without context lines

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
May 23, 2009, 17:31 UTC
Message-ID
<1243099897-5530-1-git-send-email-markus.heidelberg@web.de>
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
 gitk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
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
Next: Paul Mackerras
Message 1 of 2 in “gitk: allow diff view without context lines”
  1. gitk: allow diff view without context linesMarkus Heidelberg, May 23, 2009
  2. Paul MackerrasMay 24, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.