@@ -43,10 +43,10 @@ NS_ASSUME_NONNULL_BEGIN
43
43
// / equal.
44
44
@interface GTBranch : NSObject
45
45
46
- @property (nonatomic , readonly , nullable ) NSString *name;
47
- @property (nonatomic , readonly , nullable ) NSString *shortName;
48
- @property (nonatomic , copy , readonly , nullable ) GTOID *OID;
49
- @property (nonatomic , readonly , nullable ) NSString *remoteName;
46
+ @property (nonatomic , readonly ) NSString * _Nullable name;
47
+ @property (nonatomic , readonly ) NSString * _Nullable shortName;
48
+ @property (nonatomic , copy , readonly ) GTOID * _Nullable OID;
49
+ @property (nonatomic , readonly ) NSString * _Nullable remoteName;
50
50
@property (nonatomic , readonly ) GTBranchType branchType;
51
51
@property (nonatomic , readonly , strong ) GTRepository *repository;
52
52
@property (nonatomic , readonly , strong ) GTReference *reference;
@@ -62,22 +62,22 @@ NS_ASSUME_NONNULL_BEGIN
62
62
// / repo - The repository containing the branch. Must not be nil.
63
63
// /
64
64
// / Returns the initialized receiver.
65
- - (nullable instancetype )initWithReference : (GTReference *)ref repository : (GTRepository *)repo NS_DESIGNATED_INITIALIZER;
65
+ - (instancetype _Nullable )initWithReference : (GTReference *)ref repository : (GTRepository *)repo NS_DESIGNATED_INITIALIZER;
66
66
67
67
// / Convenience class initializer.
68
68
// /
69
69
// / ref - The branch reference to wrap. Must not be nil.
70
70
// / repo - The repository containing the branch. Must not be nil.
71
71
// /
72
72
// / Returns an initialized instance.
73
- + (nullable instancetype )branchWithReference : (GTReference *)ref repository : (GTRepository *)repo ;
73
+ + (instancetype _Nullable )branchWithReference : (GTReference *)ref repository : (GTRepository *)repo ;
74
74
75
75
// / Get the target commit for this branch
76
76
// /
77
77
// / error(out) - will be filled if an error occurs
78
78
// /
79
79
// / returns a GTCommit object or nil if an error occurred
80
- - (nullable GTCommit *)targetCommitWithError : (NSError **)error ;
80
+ - (GTCommit * _Nullable )targetCommitWithError : (NSError **)error ;
81
81
82
82
// / Count all commits in this branch
83
83
// /
@@ -92,15 +92,15 @@ NS_ASSUME_NONNULL_BEGIN
92
92
// / error - If not NULL, set to any error that occurs.
93
93
// /
94
94
// / Returns a (possibly empty) array of GTCommits, or nil if an error occurs.
95
- - (nullable NSArray <GTCommit *> *)uniqueCommitsRelativeToBranch : (GTBranch *)otherBranch error : (NSError **)error ;
95
+ - (NSArray <GTCommit *> * _Nullable )uniqueCommitsRelativeToBranch : (GTBranch *)otherBranch error : (NSError **)error ;
96
96
97
97
// / Deletes the local branch and nils out the reference.
98
98
- (BOOL )deleteWithError : (NSError **)error ;
99
99
100
100
// / If the receiver is a local branch, looks up and returns its tracking branch.
101
101
// / If the receiver is a remote branch, returns self. If no tracking branch was
102
102
// / found, returns nil and sets `success` to YES.
103
- - (nullable GTBranch *)trackingBranchWithError : (NSError **)error success : (nullable BOOL *)success ;
103
+ - (GTBranch * _Nullable )trackingBranchWithError : (NSError **)error success : (BOOL * _Nullable )success ;
104
104
105
105
// / Update the tracking branch.
106
106
// /
@@ -109,7 +109,7 @@ NS_ASSUME_NONNULL_BEGIN
109
109
// / error - The error if one occurred.
110
110
// /
111
111
// / Returns whether it was successful.
112
- - (BOOL )updateTrackingBranch : (nullable GTBranch *)trackingBranch error : (NSError **)error ;
112
+ - (BOOL )updateTrackingBranch : (GTBranch * _Nullable )trackingBranch error : (NSError **)error ;
113
113
114
114
// / Reloads the branch's reference and creates a new branch based off that newly
115
115
// / loaded reference.
@@ -119,7 +119,7 @@ NS_ASSUME_NONNULL_BEGIN
119
119
// / error - The error if one occurred.
120
120
// /
121
121
// / Returns the reloaded branch, or nil if an error occurred.
122
- - (nullable GTBranch *)reloadedBranchWithError : (NSError **)error ;
122
+ - (GTBranch * _Nullable )reloadedBranchWithError : (NSError **)error ;
123
123
124
124
// / Calculate the ahead/behind count from this branch to the given branch.
125
125
// /
0 commit comments