author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 11 Nov 2006 23:42:42 +0000 (18:42 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 12 Nov 2006 05:16:01 +0000 (00:16 -0500) | ||
commit | 73ad179bbbba56c053045c555b7e5f1882380533 | |
tree | de8f738391f0de646ef2740a833597745a735558 | tree | snapshot |
parent | 7f1df79bb7bad696d1d8965da3937edeb1cfe9f6 | commit | diff |
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>
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 | diff | blob | history |