]> git.ipfire.org Git - thirdparty/git.git/commit - git-gui/git-gui.sh
git-gui: Fix list loading corruption introduced by 1461c5f3.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 19 Nov 2006 06:00:48 +0000 (01:00 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 19 Nov 2006 06:00:48 +0000 (01:00 -0500)
commit86291555c94300b057a156d87239a6cab09511b3
tree241735d506d63f6868b477b4b33f01bf3792b264
parentdde5974ef109ed3aadfbac4d233899fb04d1c9ff
git-gui: Fix list loading corruption introduced by 1461c5f3.

Tcl let me assign two different types of values to the variable $n.
Prior to 1461c5f3 $n was the total number of bytes in the string;
but in that commit it also became the current info list for the
current file.  This caused $c < $n to fail as $n was now treated
as 0 and we only loaded the first file in each buffer.

So use a different variable, like $i, instead.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui