Skip to content

Commit 8887a2a

Browse files
committed
Merge branch 'master' into ben/libgit2-build
2 parents c906271 + 3cec633 commit 8887a2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+252
-95
lines changed

.gitmodules

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@
77
[submodule "libssh2"]
88
path = External/libssh2
99
url = https://github.com/libssh2/libssh2.git
10-
[submodule "Carthage.checkout/Nimble"]
10+
[submodule "Carthage/Checkouts/Nimble"]
1111
path = Carthage/Checkouts/Nimble
1212
url = https://github.com/Quick/Nimble.git
13-
[submodule "Carthage.checkout/Quick"]
13+
[submodule "Carthage/Checkouts/Quick"]
1414
path = Carthage/Checkouts/Quick
1515
url = https://github.com/Quick/Quick.git
16-
[submodule "Carthage.checkout/xcconfigs"]
16+
[submodule "Carthage/Checkouts/xcconfigs"]
1717
path = Carthage/Checkouts/xcconfigs
1818
url = https://github.com/jspahrsummers/xcconfigs.git
19-
[submodule "Carthage/Checkouts/Nimble"]
20-
url = https://github.com/Quick/Nimble.git
21-
[submodule "Carthage/Checkouts/Quick"]
22-
url = https://github.com/Quick/Quick.git

External/libgit2

Submodule libgit2 updated 86 files

ObjectiveGit/GTBlame.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ NS_ASSUME_NONNULL_BEGIN
1717
/// A `GTBlame` provides authorship info, through `GTBlameHunk` for each line of a file. Analogous to `git_blame` in libgit2.
1818
@interface GTBlame : NSObject
1919

20+
- (instancetype)init NS_UNAVAILABLE;
21+
2022
/// Designated initializer.
2123
///
2224
/// blame - A git_blame to wrap. May not be NULL.

ObjectiveGit/GTBlame.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ @interface GTBlame ()
2121

2222
@implementation GTBlame
2323

24+
- (instancetype)init {
25+
NSAssert(NO, @"Call to an unavailable initializer.");
26+
return nil;
27+
}
28+
2429
- (instancetype)initWithGitBlame:(git_blame *)blame {
2530
NSParameterAssert(blame != NULL);
2631

ObjectiveGit/GTBlameHunk.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ NS_ASSUME_NONNULL_BEGIN
1717
/// A `GTBlameHunk` is an object that provides authorship info for a set of lines in a `GTBlame`.
1818
@interface GTBlameHunk : NSObject
1919

20+
- (instancetype)init NS_UNAVAILABLE;
21+
2022
/// Designated initializer.
2123
///
2224
/// hunk - A git_blame_hunk to wrap. May not be NULL.

ObjectiveGit/GTBlameHunk.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
@implementation GTBlameHunk
1414

15+
- (instancetype)init {
16+
NSAssert(NO, @"Call to an unavailable initializer.");
17+
return nil;
18+
}
19+
1520
- (instancetype)initWithGitBlameHunk:(git_blame_hunk)hunk {
1621
self = [super init];
1722
if (self == nil) return nil;

ObjectiveGit/GTBranch.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ NS_ASSUME_NONNULL_BEGIN
5454
+ (NSString *)localNamePrefix;
5555
+ (NSString *)remoteNamePrefix;
5656

57+
- (instancetype)init NS_UNAVAILABLE;
58+
5759
/// Designated initializer.
5860
///
5961
/// ref - The branch reference to wrap. Must not be nil.

ObjectiveGit/GTBranch.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ + (nullable instancetype)branchWithReference:(GTReference *)ref repository:(GTRe
6969
return [[self alloc] initWithReference:ref repository:repo];
7070
}
7171

72+
- (instancetype)init {
73+
NSAssert(NO, @"Call to an unavailable initializer.");
74+
return nil;
75+
}
76+
7277
- (nullable instancetype)initWithReference:(GTReference *)ref repository:(GTRepository *)repo {
7378
NSParameterAssert(ref != nil);
7479
NSParameterAssert(repo != nil);
@@ -146,7 +151,7 @@ - (GTBranchType)branchType {
146151
}
147152

148153
- (NSArray *)uniqueCommitsRelativeToBranch:(GTBranch *)otherBranch error:(NSError **)error {
149-
GTEnumerator *enumerator = [self.repository enumerateUniqueCommitsUpToOID:self.OID relativeToOID:otherBranch.OID error:error];
154+
GTEnumerator *enumerator = [self.repository enumeratorForUniqueCommitsFromOID:self.OID relativeToOID:otherBranch.OID error:error];
150155
return [enumerator allObjectsWithError:error];
151156
}
152157

ObjectiveGit/GTConfiguration.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ NS_ASSUME_NONNULL_BEGIN
2323
/// repository, this will always be nil.
2424
@property (nonatomic, readonly, copy, nullable) NSArray *remotes;
2525

26+
- (instancetype)init NS_UNAVAILABLE;
27+
2628
/// Creates and returns a configuration which includes the global, XDG, and
2729
/// system configurations.
2830
+ (nullable instancetype)defaultConfiguration;

ObjectiveGit/GTConfiguration.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ - (void)dealloc {
3333
}
3434
}
3535

36+
- (instancetype)init {
37+
NSAssert(NO, @"Call to an unavailable initializer.");
38+
return nil;
39+
}
40+
3641
- (instancetype)initWithGitConfig:(git_config *)config repository:(GTRepository *)repository {
3742
NSParameterAssert(config != NULL);
3843

0 commit comments

Comments
 (0)