Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make [GTRefLog initWithReference:] public #596

Merged
merged 1 commit into from
Nov 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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