Skip to content

Commit b84ea02

Browse files
committed
Clarify typing of PBGitRepository ivars
1 parent c06dd3d commit b84ea02

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Classes/git/PBGitRepository.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ typedef enum branchFilterTypes {
4242
@property (readonly, getter = getIndexURL) NSURL* indexURL;
4343

4444
@property (nonatomic, strong) PBGitHistoryList *revisionList;
45-
@property (nonatomic, readonly, strong) NSArray* stashes;
46-
@property (nonatomic, readonly, strong) NSArray* branches;
47-
@property (nonatomic, strong) NSMutableOrderedSet* branchesSet;
48-
@property (nonatomic, strong) PBGitRevSpecifier* currentBranch;
45+
@property (nonatomic, readonly, strong) NSArray <PBGitStash *> *stashes;
46+
@property (nonatomic, readonly, strong) NSArray <PBGitRevSpecifier *> *branches;
47+
@property (nonatomic, strong) NSMutableOrderedSet <PBGitRevSpecifier *> *branchesSet;
48+
@property (nonatomic, strong) PBGitRevSpecifier *currentBranch;
4949
@property (nonatomic, strong) NSMutableDictionary* refs;
5050
@property (readonly, strong) GTRepository* gtRepo;
5151
@property (nonatomic, readonly) BOOL isShallowRepository;
@@ -113,7 +113,7 @@ typedef enum branchFilterTypes {
113113
- (BOOL)refExists:(PBGitRef *)ref;
114114
- (PBGitRef *)refForName:(NSString *)name;
115115

116-
- (NSArray *) remotes;
116+
- (NSArray <NSString *> *) remotes;
117117
- (BOOL) hasRemotes;
118118
- (PBGitRef *) remoteRefForBranch:(PBGitRef *)branch error:(NSError **)error;
119119

Classes/git/PBGitRepository.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ - (PBGitRef *)refForName:(NSString *)name
448448
return [PBGitRef refFromString:refName];
449449
}
450450

451-
- (NSArray*)branches
451+
- (NSArray <PBGitRevSpecifier *> *)branches
452452
{
453453
return [self.branchesSet array];
454454
}
@@ -510,7 +510,7 @@ - (void) setHasChanged:(BOOL)newHasChanged {
510510

511511
#pragma mark Stashes
512512

513-
- (NSArray *)stashes
513+
- (NSArray <PBGitStash *> *)stashes
514514
{
515515
NSMutableArray *stashes = [NSMutableArray array];
516516
[self.gtRepo enumerateStashesUsingBlock:^(NSUInteger index, NSString *message, GTOID *oid, BOOL *stop) {
@@ -623,7 +623,7 @@ - (PBGitIndex *)index
623623

624624
#pragma mark Remotes
625625

626-
- (NSArray *) remotes
626+
- (NSArray <NSString *> *)remotes
627627
{
628628
NSError *error = nil;
629629
NSArray *remotes = [self.gtRepo remoteNamesWithError:&error];

0 commit comments

Comments
 (0)