CommitController: Don't turn of off automatic rearranging

In a6b7c0c2a6 (GitCommitController: Also use dictionary lookup for untracked files),
we started using a dictionary when updating the index to avoid O(n^2) lookups
and make the code cleaner at the same time.

Before that change we temporarily stopped tracking the index, so that
the controller wasn't fired with hundreds of KVO notifications. in a6b7c0c2a6,
we removed the re-tracked, but accidentally kept the untracking portion, which
meant that some index changes would not propagate to the controllers.
This commit is contained in:
Pieter de Bie
2009-06-20 21:58:34 +01:00
parent 6fd339756e
commit a03401dd51
-1
View File
@@ -195,7 +195,6 @@
- (void) readOtherFiles:(NSNotification *)notification;
{
[unstagedFilesController setAutomaticallyRearrangesObjects:NO];
NSArray *lines = [self linesFromNotification:notification];
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] initWithCapacity:[lines count]];
// We fake this files status as good as possible.