Git development
 help / color / mirror / Atom feed
* [PATCH (GIT-GUI BUG)] git-gui: use of undeclared variable in handle_empty_diff
@ 2009-04-05 20:20 Joerg Bornemann
  2009-04-05 21:20 ` Sverre Rabbelier
  2009-04-05 21:35 ` Johannes Schindelin
  0 siblings, 2 replies; 3+ messages in thread
From: Joerg Bornemann @ 2009-04-05 20:20 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

Commit 584fa9cc ("git-gui: Avoid an infinite rescan loop in
handle_empty_diff.") introduced the global variable diff_empty_count, which
is used in diff.tcl. But this variable isn't declared anywhere which
results in an ugly error message box instead of the intended informative
message. This patch fixes this and removes the unnecessary second
initialization of current_diff_path. 

[-- Attachment #2: diff.txt --]
[-- Type: text/plain, Size: 442 bytes --]

diff --git a/git-gui.sh b/git-gui.sh
index b3aa732..b0d5028 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1104,10 +1104,10 @@ set commit_type {}
 set empty_tree {}
 set current_branch {}
 set is_detached 0
-set current_diff_path {}
 set is_3way_diff 0
 set is_conflict_diff 0
 set selected_commit_type new
+set diff_empty_count 0
 
 set nullid "0000000000000000000000000000000000000000"
 set nullid2 "0000000000000000000000000000000000000001"

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-05 21:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-05 20:20 [PATCH (GIT-GUI BUG)] git-gui: use of undeclared variable in handle_empty_diff Joerg Bornemann
2009-04-05 21:20 ` Sverre Rabbelier
2009-04-05 21:35 ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox