@@ -43,10 +43,10 @@ NS_ASSUME_NONNULL_BEGIN
4343// / equal.
4444@interface GTBranch : NSObject
4545
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;
5050@property (nonatomic , readonly ) GTBranchType branchType;
5151@property (nonatomic , readonly , strong ) GTRepository *repository;
5252@property (nonatomic , readonly , strong ) GTReference *reference;
@@ -62,22 +62,22 @@ NS_ASSUME_NONNULL_BEGIN
6262// / repo - The repository containing the branch. Must not be nil.
6363// /
6464// / 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;
6666
6767// / Convenience class initializer.
6868// /
6969// / ref - The branch reference to wrap. Must not be nil.
7070// / repo - The repository containing the branch. Must not be nil.
7171// /
7272// / Returns an initialized instance.
73- + (nullable instancetype )branchWithReference : (GTReference *)ref repository : (GTRepository *)repo ;
73+ + (instancetype _Nullable )branchWithReference : (GTReference *)ref repository : (GTRepository *)repo ;
7474
7575// / Get the target commit for this branch
7676// /
7777// / error(out) - will be filled if an error occurs
7878// /
7979// / returns a GTCommit object or nil if an error occurred
80- - (nullable GTCommit *)targetCommitWithError : (NSError **)error ;
80+ - (GTCommit * _Nullable )targetCommitWithError : (NSError **)error ;
8181
8282// / Count all commits in this branch
8383// /
@@ -92,15 +92,15 @@ NS_ASSUME_NONNULL_BEGIN
9292// / error - If not NULL, set to any error that occurs.
9393// /
9494// / 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 ;
9696
9797// / Deletes the local branch and nils out the reference.
9898- (BOOL )deleteWithError : (NSError **)error ;
9999
100100// / If the receiver is a local branch, looks up and returns its tracking branch.
101101// / If the receiver is a remote branch, returns self. If no tracking branch was
102102// / 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 ;
104104
105105// / Update the tracking branch.
106106// /
@@ -109,7 +109,7 @@ NS_ASSUME_NONNULL_BEGIN
109109// / error - The error if one occurred.
110110// /
111111// / Returns whether it was successful.
112- - (BOOL )updateTrackingBranch : (nullable GTBranch *)trackingBranch error : (NSError **)error ;
112+ - (BOOL )updateTrackingBranch : (GTBranch * _Nullable )trackingBranch error : (NSError **)error ;
113113
114114// / Reloads the branch's reference and creates a new branch based off that newly
115115// / loaded reference.
@@ -119,7 +119,7 @@ NS_ASSUME_NONNULL_BEGIN
119119// / error - The error if one occurred.
120120// /
121121// / Returns the reloaded branch, or nil if an error occurred.
122- - (nullable GTBranch *)reloadedBranchWithError : (NSError **)error ;
122+ - (GTBranch * _Nullable )reloadedBranchWithError : (NSError **)error ;
123123
124124// / Calculate the ahead/behind count from this branch to the given branch.
125125// /
0 commit comments