diff --git a/ObjectiveGit/GTReflog+Private.h b/ObjectiveGit/GTReflog+Private.h index 19fc16b9f..cf21c00fe 100644 --- a/ObjectiveGit/GTReflog+Private.h +++ b/ObjectiveGit/GTReflog+Private.h @@ -8,17 +8,8 @@ #import "GTReflog.h" -@class GTReference; - @interface GTReflog () - (nullable instancetype)init NS_UNAVAILABLE; -/// Initializes the receiver with a reference. Designated initializer. -/// -/// reference - The reference whose reflog is being represented. Cannot be nil. -/// -/// Returns the initialized object. -- (nullable instancetype)initWithReference:(nonnull GTReference *)reference NS_DESIGNATED_INITIALIZER; - @end diff --git a/ObjectiveGit/GTReflog.h b/ObjectiveGit/GTReflog.h index cc03a60b9..581300f53 100644 --- a/ObjectiveGit/GTReflog.h +++ b/ObjectiveGit/GTReflog.h @@ -9,6 +9,7 @@ #import @class GTSignature; +@class GTReference; @class GTReflogEntry; NS_ASSUME_NONNULL_BEGIN @@ -20,6 +21,13 @@ NS_ASSUME_NONNULL_BEGIN /// The number of reflog entries. @property (nonatomic, readonly, assign) NSUInteger entryCount; +/// Initializes the receiver with a reference. Designated initializer. +/// +/// reference - The reference whose reflog is being represented. Cannot be nil. +/// +/// Returns the initialized object. +- (nullable instancetype)initWithReference:(nonnull GTReference *)reference NS_DESIGNATED_INITIALIZER; + /// Writes a new entry to the reflog. /// /// committer - The committer for the reflog entry. Cannot be nil.