Skip to content

Commit 9219175

Browse files
committed
Merge pull request #516 from JrGoodle/generics-headers
[Xcode 7] Add types to collections in GT headers
2 parents cb4bcb6 + dca46ad commit 9219175

File tree

16 files changed

+40
-30
lines changed

16 files changed

+40
-30
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
osx_image: xcode6.4
1+
osx_image: xcode7
22
language: objective-c
3-
install: script/bootstrap
3+
before_install: brew update
4+
install:
5+
- brew uninstall xctool && brew install --HEAD xctool
6+
- script/bootstrap
47
script: script/cibuild
58
notifications:
69
email: false

Carthage/Checkouts/Nimble

Submodule Nimble updated 75 files

Carthage/Checkouts/Quick

Submodule Quick updated 50 files

ObjectiveGit/GTBlame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ NS_ASSUME_NONNULL_BEGIN
2727
- (nullable instancetype)initWithGitBlame:(git_blame *)blame NS_DESIGNATED_INITIALIZER;
2828

2929
/// Get all the hunks in the blame. A convenience wrapper around `enumerateHunksUsingBlock:`
30-
@property (nonatomic, strong, readonly) NSArray *hunks;
30+
@property (nonatomic, strong, readonly) NSArray<GTBlameHunk *> *hunks;
3131

3232
/// The number of hunks in the blame.
3333
@property (nonatomic, readonly) NSUInteger hunkCount;

ObjectiveGit/GTBranch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ NS_ASSUME_NONNULL_BEGIN
9292
/// error - If not NULL, set to any error that occurs.
9393
///
9494
/// Returns a (possibly empty) array of GTCommits, or nil if an error occurs.
95-
- (nullable NSArray *)uniqueCommitsRelativeToBranch:(GTBranch *)otherBranch error:(NSError **)error;
95+
- (nullable NSArray<GTCommit *> *)uniqueCommitsRelativeToBranch:(GTBranch *)otherBranch error:(NSError **)error;
9696

9797
/// Deletes the local branch and nils out the reference.
9898
- (BOOL)deleteWithError:(NSError **)error;

ObjectiveGit/GTCommit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ NS_ASSUME_NONNULL_BEGIN
4040

4141
@property (nonatomic, readonly, strong, nullable) GTSignature *author;
4242
@property (nonatomic, readonly, strong, nullable) GTSignature *committer;
43-
@property (nonatomic, readonly, copy) NSArray *parents;
43+
@property (nonatomic, readonly, copy) NSArray<GTCommit *> *parents;
4444
@property (nonatomic, readonly, nullable) NSString *message;
4545
@property (nonatomic, readonly) NSString *messageDetails;
4646
@property (nonatomic, readonly) NSString *messageSummary;

ObjectiveGit/GTConfiguration.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#import <Foundation/Foundation.h>
1010
#import "git2/types.h"
1111

12+
@class GTRemote;
1213
@class GTRepository;
1314
@class GTSignature;
1415

@@ -17,11 +18,11 @@ NS_ASSUME_NONNULL_BEGIN
1718
@interface GTConfiguration : NSObject
1819

1920
@property (nonatomic, readonly, strong, nullable) GTRepository *repository;
20-
@property (nonatomic, readonly, copy) NSArray *configurationKeys;
21+
@property (nonatomic, readonly, copy) NSArray<NSString *> *configurationKeys;
2122

2223
/// The GTRemotes in the config. If the configuration isn't associated with any
2324
/// repository, this will always be nil.
24-
@property (nonatomic, readonly, copy, nullable) NSArray *remotes;
25+
@property (nonatomic, readonly, copy, nullable) NSArray<GTRemote *> *remotes;
2526

2627
- (instancetype)init NS_UNAVAILABLE;
2728

ObjectiveGit/GTEnumerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ NS_ASSUME_NONNULL_BEGIN
115115
/// error - If not NULL, set to any error that occurs during traversal.
116116
///
117117
/// Returns a (possibly empty) array of GTCommits, or nil if an error occurs.
118-
- (nullable NSArray *)allObjectsWithError:(NSError **)error;
118+
- (nullable NSArray<GTCommit *> *)allObjectsWithError:(NSError **)error;
119119

120120
/// Gets the next commit.
121121
///

ObjectiveGit/GTIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ NS_ASSUME_NONNULL_BEGIN
4949
@property (nonatomic, readonly) NSUInteger entryCount;
5050

5151
/// The GTIndexEntries in the index.
52-
@property (nonatomic, readonly, copy) NSArray *entries;
52+
@property (nonatomic, readonly, copy) NSArray<GTIndexEntry *> *entries;
5353

5454
/// Whether the index contains conflicted files.
5555
@property (nonatomic, readonly) BOOL hasConflicts;
@@ -220,7 +220,7 @@ NS_ASSUME_NONNULL_BEGIN
220220
/// error - When something goes wrong, this parameter is set. Optional.
221221
///
222222
/// Returns `YES` in the event that everything has gone smoothly. Otherwise, `NO`.
223-
- (BOOL)updatePathspecs:(nullable NSArray *)pathspecs error:(NSError **)error passingTest:(nullable BOOL (^)(NSString *matchedPathspec, NSString *path, BOOL *stop))block;
223+
- (BOOL)updatePathspecs:(nullable NSArray<NSString*> *)pathspecs error:(NSError **)error passingTest:(nullable BOOL (^)(NSString *matchedPathspec, NSString *path, BOOL *stop))block;
224224

225225
#pragma mark Deprecations
226226
- (nullable GTIndexEntry *)entryWithName:(NSString *)name __deprecated_msg("use entryWithPath: instead.");

ObjectiveGit/GTRemote.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ typedef enum {
5656
///
5757
/// This array will contain NSStrings of the form
5858
/// `+refs/heads/*:refs/remotes/REMOTE/*`.
59-
@property (nonatomic, readonly, copy, nullable) NSArray *fetchRefspecs;
59+
@property (nonatomic, readonly, copy, nullable) NSArray<NSString *> *fetchRefspecs;
6060

6161
/// The push refspecs for this remote.
6262
///
6363
/// This array will contain NSStrings of the form
6464
/// `+refs/heads/*:refs/remotes/REMOTE/*`.
65-
@property (nonatomic, readonly, copy, nullable) NSArray *pushRefspecs;
65+
@property (nonatomic, readonly, copy, nullable) NSArray<NSString *> *pushRefspecs;
6666

6767
/// Tests if a name is valid
6868
+ (BOOL)isValidRemoteName:(NSString *)name;

0 commit comments

Comments
 (0)