@@ -149,24 +149,25 @@ - (void)changeContentToCommit:(PBGitCommit *)commit
149149 }
150150
151151 dispatch_async (dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_HIGH , 0 ), ^{
152- NSDictionary *summary = loadCommitSummary (repo, queueCommit, ^BOOL {
153- return gen != atomic_load (&self->_commitSummaryGeneration );
154- });
155- if (!summary) return ;
156- NSError *err = nil ;
157- NSString *summaryJSON =
158- [[NSString alloc ] initWithData: [NSJSONSerialization dataWithJSONObject: summary
159- options: 0
160- error: &err]
161- encoding: NSUTF8StringEncoding];
162- if (!summaryJSON) {
163- NSLog (@" Commit summary JSON error: %@ " , err);
164- return ;
165- }
166- dispatch_async (dispatch_get_main_queue (), ^{
167- [self commitSummaryLoaded: summaryJSON forOID: commit.OID ];
152+ NSDictionary *summary = loadCommitSummary (repo, queueCommit, ^BOOL {
153+ return gen != atomic_load (&self->_commitSummaryGeneration );
154+ });
155+ if (!summary) return ;
156+ NSError *err = nil ;
157+ NSString *summaryJSON =
158+ [[NSString alloc ] initWithData: [NSJSONSerialization dataWithJSONObject: summary
159+ options: 0
160+ error: &err]
161+ encoding: NSUTF8StringEncoding];
162+ if (!summaryJSON) {
163+ NSLog (@" Commit summary JSON error: %@ " , err);
164+ return ;
165+ }
166+ dispatch_async (dispatch_get_main_queue (), ^{
167+ [self commitSummaryLoaded: summaryJSON forOID: commit.OID ];
168+ });
168169 });
169- }) ;
170+ }] ;
170171}
171172
172173static NSDictionary *loadCommitSummary (GTRepository *repo, GTCommit *commit, BOOL (^isCanceled)(void ))
0 commit comments