@@ -142,6 +142,7 @@ - (NSString *) parentTree
142
142
return parent;
143
143
}
144
144
145
+ // TODO: make Asynchronous
145
146
- (void )commitWithMessage : (NSString *)commitMessage
146
147
{
147
148
NSMutableString *commitSubject = [@" commit: " mutableCopy ];
@@ -419,8 +420,7 @@ - (void)readOtherFiles:(NSNotification *)notification
419
420
NSArray *lines = [self linesFromNotification: notification];
420
421
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc ] initWithCapacity: [lines count ]];
421
422
// Other files are untracked, so we don't have any real index information. Instead, we can just fake it.
422
- // The line below is used to add the file to the index
423
- // FIXME: request the real file mode
423
+ // The line below is not used at all, as for these files the commitBlob isn't set
424
424
NSArray *fileStatus = [NSArray arrayWithObjects: @" :000000" , @" 100644" , @" 0000000000000000000000000000000000000000" , @" 0000000000000000000000000000000000000000" , @" A" , nil ];
425
425
for (NSString *path in lines) {
426
426
if ([path length ] == 0 )
@@ -450,7 +450,6 @@ - (void) readUnstagedFiles:(NSNotification *)notification
450
450
451
451
- (void ) addFilesFromDictionary : (NSMutableDictionary *)dictionary staged : (BOOL )staged tracked : (BOOL )tracked
452
452
{
453
- // TODO: Stop tracking files
454
453
// Iterate over all existing files
455
454
for (PBChangedFile *file in files) {
456
455
NSArray *fileStatus = [dictionary objectForKey: file.path];
@@ -494,7 +493,6 @@ - (void) addFilesFromDictionary:(NSMutableDictionary *)dictionary staged:(BOOL)s
494
493
file.hasUnstagedChanges = NO ;
495
494
}
496
495
}
497
- // TODO: Finish tracking files
498
496
499
497
// Do new files only if necessary
500
498
if (![[dictionary allKeys ] count ])
@@ -535,7 +533,7 @@ - (NSArray *)linesFromNotification:(NSNotification *)notification
535
533
return [NSArray array ];
536
534
537
535
NSString *string = [[NSString alloc ] initWithData: data encoding: NSUTF8StringEncoding];
538
- // FIXME: Return an error?
536
+ // FIXME: throw an error?
539
537
if (!string)
540
538
return [NSArray array ];
541
539
0 commit comments