Skip to content

Commit

Permalink
git-gui: fix use of undeclared variable diff_empty_count
Browse files Browse the repository at this point in the history
Commit 584fa9c 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>
  • Loading branch information
Joerg Bornemann authored and Shawn O. Pearce committed Apr 8, 2009
1 parent bf516ec commit 8052e78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8052e78

Please sign in to comment.