Skip to content

Commit 4673546

Browse files
authored
Merge pull request #596 from Uncommon/reflog
Make [GTRefLog initWithReference:] public
2 parents 614bce9 + d3b4c34 commit 4673546

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

ObjectiveGit/GTReflog+Private.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,8 @@
88

99
#import "GTReflog.h"
1010

11-
@class GTReference;
12-
1311
@interface GTReflog ()
1412

1513
- (nullable instancetype)init NS_UNAVAILABLE;
1614

17-
/// Initializes the receiver with a reference. Designated initializer.
18-
///
19-
/// reference - The reference whose reflog is being represented. Cannot be nil.
20-
///
21-
/// Returns the initialized object.
22-
- (nullable instancetype)initWithReference:(nonnull GTReference *)reference NS_DESIGNATED_INITIALIZER;
23-
2415
@end

ObjectiveGit/GTReflog.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#import <Foundation/Foundation.h>
1010

1111
@class GTSignature;
12+
@class GTReference;
1213
@class GTReflogEntry;
1314

1415
NS_ASSUME_NONNULL_BEGIN
@@ -20,6 +21,13 @@ NS_ASSUME_NONNULL_BEGIN
2021
/// The number of reflog entries.
2122
@property (nonatomic, readonly, assign) NSUInteger entryCount;
2223

24+
/// Initializes the receiver with a reference. Designated initializer.
25+
///
26+
/// reference - The reference whose reflog is being represented. Cannot be nil.
27+
///
28+
/// Returns the initialized object.
29+
- (nullable instancetype)initWithReference:(nonnull GTReference *)reference NS_DESIGNATED_INITIALIZER;
30+
2331
/// Writes a new entry to the reflog.
2432
///
2533
/// committer - The committer for the reflog entry. Cannot be nil.

0 commit comments

Comments
 (0)