From d3b4c34cfa657c382e232ae183d077a7ce4653be Mon Sep 17 00:00:00 2001 From: David Catmull Date: Tue, 1 Nov 2016 09:12:41 -0600 Subject: [PATCH] Make [GTRefLog initWithReference:] public --- ObjectiveGit/GTReflog+Private.h | 9 --------- ObjectiveGit/GTReflog.h | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) 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.