@matheusbsbs / matheus-bagliano / commits / 8052e788b5
Fork 0

git-gui: fix use of undeclared variable diff_empty_count

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>

Joerg Bornemann committed Apr 6, 2009 at 21:59 UTC 8052e788b5e9ae2e2d06b5050fa73394ffe0993a
1 file changed +1
git-gui.sh
+1
@@ -1108,6 +1108,7 @@ set current_diff_path {}
1108 set is_3way_diff 0
1109 set is_conflict_diff 0
1110 set selected_commit_type new
1111 +set diff_empty_count 0
1112
1113 set nullid "0000000000000000000000000000000000000000"
1114 set nullid2 "0000000000000000000000000000000000000001"