Skip to content

Commit b74aa1d

Browse files
author
Ben Chatelain
committed
GTFetchHeadEntry nullability
1 parent c08ecf8 commit b74aa1d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ObjectiveGit/GTFetchHeadEntry.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
@class GTOID;
1313
@class GTReference;
1414

15+
NS_ASSUME_NONNULL_BEGIN
16+
1517
/// A class representing an entry on the FETCH_HEAD file, as returned by the callback of git_repository_fetchhead_foreach.
1618
@interface GTFetchHeadEntry : NSObject
1719

@@ -33,6 +35,10 @@
3335
/// remoteURLString - URL String where this was originally fetched from. Cannot be nil.
3436
/// targetOID - Target OID. Cannot be nil.
3537
/// merge - Indicates if this is pending a merge.
36-
- (instancetype)initWithReference:(GTReference *)reference remoteURLString:(NSString *)remoteURLString targetOID:(GTOID *)targetOID isMerge:(BOOL)merge NS_DESIGNATED_INITIALIZER;
38+
///
39+
/// Returns an initialized fetch head entry, or nil if an error occurred.
40+
- (nullable instancetype)initWithReference:(GTReference *)reference remoteURLString:(NSString *)remoteURLString targetOID:(GTOID *)targetOID isMerge:(BOOL)merge NS_DESIGNATED_INITIALIZER;
3741

3842
@end
43+
44+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)