From: Joerg Bornemann Date: Mon, 6 Apr 2009 19:59:28 +0000 (+0200) Subject: git-gui: fix use of undeclared variable diff_empty_count X-Git-Tag: v1.6.3-rc4~1^2~3^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8052e788b5e9ae2e2d06b5050fa73394ffe0993a;p=git.git 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 Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui.sh b/git-gui.sh index b3aa7325f..b70e1598d 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -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"