@@ -84,43 +84,43 @@ - (void)commitDetailsLoaded:(NSNotification *)notification
8484 return ;
8585
8686
87- NSMutableString *refs= [NSMutableString string ];
88- NSArray *refsA= [historyController.webCommit refs ];
89- NSString *currentRef= [[[historyController repository ] headRef ] simpleRef ];
90- NSString *style= @" " ;
87+ NSMutableString *refs = [NSMutableString string ];
88+ NSArray *refsA = [historyController.webCommit refs ];
89+ NSString *currentRef = [[[historyController repository ] headRef ] simpleRef ];
90+ NSString *style = @" " ;
9191 for (PBGitRef *ref in refsA){
9292 if ([currentRef isEqualToString: [ref ref ]]){
93- style= [NSString stringWithFormat: @" currentBranch refs %@ " ,[ref type ]];
93+ style = [NSString stringWithFormat: @" currentBranch refs %@ " ,[ref type ]];
9494 }else {
95- style= [NSString stringWithFormat: @" refs %@ " ,[ref type ]];
95+ style = [NSString stringWithFormat: @" refs %@ " ,[ref type ]];
9696 }
9797 [refs appendString: [NSString stringWithFormat: @" <span class='%@ '>%@ </span>" ,style,[ref shortName ]]];
9898 }
9999
100100 // Header
101- NSString *header= [self parseHeader: details withRefs: refs];
101+ NSString *header = [self parseHeader: details withRefs: refs];
102102
103103 // File Stats
104- NSMutableDictionary *stats= [self parseStats: details];
104+ NSMutableDictionary *stats = [self parseStats: details];
105105
106106 // File list
107- NSString *dt= [repository outputInWorkdirForArguments: [NSArray arrayWithObjects: @" diff-tree" , @" --root" , @" -r" , @" -C90%" , @" -M90%" , currentSha, nil ]];
108- NSString *fileList= [GLFileView parseDiffTree: dt withStats: stats];
107+ NSString *dt = [repository outputInWorkdirForArguments: [NSArray arrayWithObjects: @" diff-tree" , @" --root" , @" -r" , @" -C90%" , @" -M90%" , currentSha, nil ]];
108+ NSString *fileList = [GLFileView parseDiffTree: dt withStats: stats];
109109
110110 // Diffs list
111- NSString *d= [repository outputInWorkdirForArguments: [NSArray arrayWithObjects: @" diff-tree" , @" --root" , @" --cc" , @" -C90%" , @" -M90%" , currentSha, nil ]];
112- NSString *diffs= [GLFileView parseDiff: d];
111+ NSString *d = [repository outputInWorkdirForArguments: [NSArray arrayWithObjects: @" diff-tree" , @" --root" , @" --cc" , @" -C90%" , @" -M90%" , currentSha, nil ]];
112+ NSString *diffs = [GLFileView parseDiff: d];
113113
114- NSString *html= [NSString stringWithFormat: @" %@%@ <div id='diffs'>%@ </div>" ,header,fileList,diffs];
114+ NSString *html = [NSString stringWithFormat: @" %@%@ <div id='diffs'>%@ </div>" ,header,fileList,diffs];
115115
116- html= [html stringByReplacingOccurrencesOfString: @" {SHA_PREV}" withString: [NSString stringWithFormat: @" %@ ^" ,currentSha]];
117- html= [html stringByReplacingOccurrencesOfString: @" {SHA}" withString: currentSha];
116+ html = [html stringByReplacingOccurrencesOfString: @" {SHA_PREV}" withString: [NSString stringWithFormat: @" %@ ^" ,currentSha]];
117+ html = [html stringByReplacingOccurrencesOfString: @" {SHA}" withString: currentSha];
118118
119119 [[view windowScriptObject ] callWebScriptMethod: @" showCommit" withArguments: [NSArray arrayWithObject: html]];
120120
121121#ifdef DEBUG_BUILD
122- NSString *dom= [(DOMHTMLElement *)[[[view mainFrame ] DOMDocument ] documentElement ] outerHTML ];
123- NSString *tmpFile= @" ~/tmp/test2.html" ;
122+ NSString *dom = [(DOMHTMLElement *)[[[view mainFrame ] DOMDocument ] documentElement ] outerHTML ];
123+ NSString *tmpFile = @" ~/tmp/test2.html" ;
124124 [dom writeToFile: [tmpFile stringByExpandingTildeInPath ] atomically: true encoding: NSUTF8StringEncoding error: nil ];
125125#endif
126126}
0 commit comments