File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 7
7
//
8
8
9
9
#import < Cocoa/Cocoa.h>
10
-
11
10
#define MIN_GIT_VERSION " 1.6.0"
12
11
13
- @interface PBGitBinary : NSObject {
14
-
15
- }
16
12
13
+ @interface PBGitBinary : NSObject
17
14
+ (NSString *) path ;
18
15
+ (NSString *) version ;
19
16
+ (NSArray *) searchLocations ;
Original file line number Diff line number Diff line change @@ -83,18 +83,16 @@ + (void) initialize
83
83
NSLog (@" Could not find a git binary higher than version " MIN_GIT_VERSION);
84
84
}
85
85
86
- + (NSString *) path ;
87
- {
86
+ + (NSString *)path {
88
87
return gitPath;
89
88
}
90
89
91
- + (NSArray *)searchLocations
92
- {
90
+ + (NSArray *)searchLocations {
93
91
return @[
94
- @" /usr/bin/git" ,
95
- @" /Applications/Xcode.app/Contents/Developer/usr/bin/git" ,
96
92
@" /usr/local/bin/git" ,
97
93
@" /opt/local/bin/git" ,
94
+ @" /usr/bin/git" ,
95
+ @" /Applications/Xcode.app/Contents/Developer/usr/bin/git" ,
98
96
@" /sw/bin/git" ,
99
97
@" /opt/git/bin/git" ,
100
98
@" /usr/local/git/bin/git" ,
@@ -114,10 +112,8 @@ + (NSString *) notFoundError
114
112
}
115
113
116
114
117
- + (NSString *)version
118
- {
115
+ + (NSString *)version {
119
116
return [self versionForPath: gitPath];
120
117
}
121
118
122
-
123
119
@end
You can’t perform that action at this time.
0 commit comments