File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11
11
#import " PBChangedFile.h"
12
12
#import " PBWebChangesController.h"
13
13
#import " NSString_RegEx.h"
14
-
14
+ # import " PBGitIndexController.h "
15
15
16
16
@interface PBGitCommitController (PrivateMethods)
17
17
- (NSArray *) linesFromNotification : (NSNotification *)notification ;
@@ -240,6 +240,7 @@ - (NSMutableDictionary *)dictionaryForLines:(NSArray *)lines
240
240
- (void ) addFilesFromDictionary : (NSMutableDictionary *)dictionary staged : (BOOL )staged tracked : (BOOL )tracked
241
241
{
242
242
// Iterate over all existing files
243
+ [indexController stopTrackingIndex ];
243
244
for (PBChangedFile *file in files) {
244
245
NSArray *fileStatus = [dictionary objectForKey: file.path];
245
246
// Object found, this is still a cached / uncached thing
@@ -270,6 +271,7 @@ - (void) addFilesFromDictionary:(NSMutableDictionary *)dictionary staged:(BOOL)s
270
271
file.hasUnstagedChanges = NO ;
271
272
}
272
273
}
274
+ [indexController resumeTrackingIndex ];
273
275
274
276
// Do new files
275
277
if (![[dictionary allKeys ] count ])
Original file line number Diff line number Diff line change 36
36
- (NSString *) stagedChangesForFile : (PBChangedFile *)file ;
37
37
- (NSString *) unstagedChangesForFile : (PBChangedFile *)file ;
38
38
39
+ - (void )stopTrackingIndex ;
40
+ - (void )resumeTrackingIndex ;
41
+
39
42
- (NSMenu *) menuForTable : (NSTableView *)table ;
40
43
@end
Original file line number Diff line number Diff line change 12
12
13
13
#define FileChangesTableViewType @" GitFileChangedType"
14
14
15
- @interface PBGitIndexController (PrivateMethods)
16
- - (void )stopTrackingIndex ;
17
- - (void )resumeTrackingIndex ;
18
- @end
19
-
20
15
@implementation PBGitIndexController
21
16
22
17
@synthesize contextSize;
You can’t perform that action at this time.
0 commit comments