mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
CommitController: Don't turn of off automatic rearranging
Ina6b7c0c2a6(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. ina6b7c0c2a6, 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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user