CommitController: Notify observers when adding files

We forgot to do this when changing the code in 963969af78
(CommitController: don't mutate array we enumerate when refreshing index).
This meant that some changes in the index would not be shown when refreshing,
for example newly added or changed files.
This commit is contained in:
Pieter de Bie
2009-06-16 19:06:57 +01:00
parent 4391c458d0
commit ad2213ce2f
+5
View File
@@ -264,6 +264,10 @@
}
// Do new files
if (![[dictionary allKeys] count])
return;
[self willChangeValueForKey:@"files"];
for (NSString *path in [dictionary allKeys]) {
NSArray *fileStatus = [dictionary objectForKey:path];
@@ -285,6 +289,7 @@
[files addObject: file];
}
[self didChangeValueForKey:@"files"];
}
- (void) readUnstagedFiles:(NSNotification *)notification