Skip to content

Commit 542aef2

Browse files
committed
Hide the storage of PBGitRef.ref
1 parent 6397712 commit 542aef2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Classes/git/PBGitRef.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ extern NSString * const kGitXBranchRefPrefix;
2020
extern NSString * const kGitXRemoteRefPrefix;
2121

2222

23-
@interface PBGitRef : NSObject <PBGitRefish> {
24-
NSString* ref;
25-
}
23+
@interface PBGitRef : NSObject <PBGitRefish>
2624

2725
// <PBGitRefish>
2826
- (NSString *) refishName;
@@ -46,6 +44,7 @@ extern NSString * const kGitXRemoteRefPrefix;
4644

4745
+ (PBGitRef*) refFromString: (NSString*) s;
4846
- (PBGitRef*) initWithString: (NSString*) s;
49-
@property(readonly) NSString* ref;
47+
48+
@property(nonatomic, strong, readonly) NSString* ref;
5049

5150
@end

Classes/git/PBGitRef.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
NSString * const kGitXBranchRefPrefix = @"refs/heads/";
1919
NSString * const kGitXRemoteRefPrefix = @"refs/remotes/";
2020

21+
@interface PBGitRef ()
22+
23+
@property(nonatomic, strong) NSString* ref;
24+
25+
@end
2126

2227
@implementation PBGitRef
2328

0 commit comments

Comments
 (0)