File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ static NSString * PBStringFromBranchFilterType(PBGitXBranchFilterType type) {
128
128
- (id ) initWithURL : (NSURL *) path ;
129
129
- (void ) setup ;
130
130
- (void ) forceUpdateRevisions ;
131
+ - (NSURL *) getIndexURL ;
131
132
132
133
// for the scripting bridge
133
134
- (void )findInModeScriptCommand : (NSScriptCommand *)command ;
@@ -141,5 +142,6 @@ static NSString * PBStringFromBranchFilterType(PBGitXBranchFilterType type) {
141
142
@property (assign ) PBGitRevSpecifier *currentBranch;
142
143
@property (assign ) NSInteger currentBranchFilter;
143
144
@property (retain ) NSMutableDictionary * refs;
145
+ @property (readonly , getter = getIndexURL) NSURL * indexURL;
144
146
145
147
@end
Original file line number Diff line number Diff line change @@ -1127,6 +1127,13 @@ - (NSString*) parseSymbolicReference:(NSString*) reference
1127
1127
return nil ;
1128
1128
}
1129
1129
1130
+ - (NSURL *) getIndexURL
1131
+ {
1132
+ GTRepository* gtRepo = [[GTRepository repositoryWithURL: self .fileURL error: nil ] autorelease ];
1133
+ NSString * indexPath = [NSString stringWithUTF8String: git_repository_path (gtRepo.repo, GIT_REPO_PATH_INDEX)];
1134
+ NSURL * indexURL = [NSURL fileURLWithPath: indexPath];
1135
+ return [indexURL autorelease ];
1136
+ }
1130
1137
- (void ) finalize
1131
1138
{
1132
1139
NSLog (@" Dealloc of repository" );
You can’t perform that action at this time.
0 commit comments