]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: Use catch rather than array names to check file.
authorShawn O. Pearce <spearce@spearce.org>
Sat, 11 Nov 2006 23:42:42 +0000 (18:42 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 12 Nov 2006 05:16:01 +0000 (00:16 -0500)
commit73ad179bbbba56c053045c555b7e5f1882380533
treede8f738391f0de646ef2740a833597745a735558
parent7f1df79bb7bad696d1d8965da3937edeb1cfe9f6
git-gui: Use catch rather than array names to check file.

When we reshow the current diff file it can be faster to just fetch
the value from the file_states array than it is to ask for all paths
whose name exactly matches the one we want to show.  This is because
[array names -exact] is O(n) in the number of files.

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