Skip to content

Commit

Permalink
Merge pull request #596 from Uncommon/reflog
Browse files Browse the repository at this point in the history
Make [GTRefLog initWithReference:] public
  • Loading branch information
pietbrauer authored Nov 2, 2016
2 parents 614bce9 + d3b4c34 commit 4673546
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ObjectiveGit/GTReflog+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions ObjectiveGit/GTReflog.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import <Foundation/Foundation.h>

@class GTSignature;
@class GTReference;
@class GTReflogEntry;

NS_ASSUME_NONNULL_BEGIN
Expand All @@ -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.
Expand Down

0 comments on commit 4673546

Please sign in to comment.