git-gui: fix use of undeclared variable diff_empty_count
authorJoerg Bornemann <joerg.bornemann@web.de>
Mon, 6 Apr 2009 19:59:28 +0000 (21:59 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 8 Apr 2009 14:38:11 +0000 (07:38 -0700)
Commit 584fa9cc introduced the global variable diff_empty_count, which
is used in diff.tcl. This variable wasn't declared anywhere which
resulted in an ugly error message box instead of the intended
informative message.

Signed-off-by: Joerg Bornemann <joerg.bornemann@web.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index b3aa7325f037b8a4c918859f639e7aa210a1f107..b70e1598dc0fc0029bf4f4b889478efa57e3d6b4 100755 (executable)
@@ -1108,6 +1108,7 @@ 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"