Skip to content

Commit 60b6edd

Browse files
committed
Review #239 - Consistent spacing
1 parent 1c3fb8d commit 60b6edd

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

Classes/git/PBGitSVStashItem.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
@interface PBGitSVStashItem : PBSourceViewItem
1414

15-
+ (id) itemWithStash:(PBGitStash*)stash;
15+
+ (id)itemWithStash:(PBGitStash *)stash;
1616

17-
@property (nonatomic, strong) PBGitStash* stash;
17+
@property (nonatomic, strong) PBGitStash *stash;
1818

1919
@end

Classes/git/PBGitSVStashItem.m

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ @implementation PBGitSVStashItem
1414

1515
+ (id)itemWithStash:(PBGitStash *)stash
1616
{
17-
NSString * title = [NSString stringWithFormat:@"@{%zd}: %@", stash.index, stash.message];
18-
PBGitSVStashItem * item = [self itemWithTitle:title];
17+
NSString *title = [NSString stringWithFormat:@"@{%zd}: %@", stash.index, stash.message];
18+
PBGitSVStashItem *item = [self itemWithTitle:title];
1919
item.stash = stash;
2020
item.revSpecifier = [[PBGitRevSpecifier alloc] initWithRef:stash.ref];
2121
return item;
2222
}
2323

24-
-(PBGitRef *)ref {
24+
-(PBGitRef *)ref
25+
{
2526
return self.stash.ref;
2627
}
2728

Classes/git/PBGitStash.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
@interface PBGitStash : NSObject
1717
@property (nonatomic, readonly) size_t index;
18-
@property (nonatomic, readonly) PBGitCommit * commit;
19-
@property (nonatomic, readonly) NSString* message;
20-
@property (nonatomic, readonly) PBGitRef* ref;
18+
@property (nonatomic, readonly) PBGitCommit *commit;
19+
@property (nonatomic, readonly) NSString *message;
20+
@property (nonatomic, readonly) PBGitRef *ref;
2121

22-
@property (nonatomic, readonly) PBGitCommit * indexCommit;
23-
@property (nonatomic, readonly) PBGitCommit * ancesterCommit;
22+
@property (nonatomic, readonly) PBGitCommit *indexCommit;
23+
@property (nonatomic, readonly) PBGitCommit *ancesterCommit;
2424

2525
- (id) initWithRepository:(PBGitRepository *)repo stashOID:(git_oid)stash_id index:(size_t)index message:(NSString *)message;
2626

Classes/git/PBGitStash.m

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ -(id)initWithRepository:(PBGitRepository *)repo stashOID:(git_oid)stash_id index
2929
_index = index;
3030
_message = message;
3131

32-
GTRepository * gtRepo = repo.gtRepo;
33-
NSError * error = nil;
32+
GTRepository *gtRepo = repo.gtRepo;
33+
NSError *error = nil;
3434
GTOID *stashOid = [GTOID oidWithGitOid:&stash_id];
35-
GTCommit * gtCommit = (GTCommit *)[gtRepo lookupObjectByOID:stashOid objectType:GTObjectTypeCommit error:&error];
36-
NSArray * parents = [gtCommit parents];
37-
GTCommit * gtIndexCommit = [parents objectAtIndex:1];
38-
GTCommit * gtAncestorCommit = [parents objectAtIndex:0];
35+
GTCommit *gtCommit = (GTCommit *)[gtRepo lookupObjectByOID:stashOid objectType:GTObjectTypeCommit error:&error];
36+
NSArray *parents = [gtCommit parents];
37+
GTCommit *gtIndexCommit = [parents objectAtIndex:1];
38+
GTCommit *gtAncestorCommit = [parents objectAtIndex:0];
3939

4040
_commit = [[PBGitCommit alloc] initWithRepository:repo andCommit:gtCommit];
4141
_indexCommit = [[PBGitCommit alloc] initWithRepository:repo andCommit:gtIndexCommit];
@@ -52,7 +52,7 @@ -(NSString *)description
5252

5353
-(PBGitRef *)ref
5454
{
55-
NSString * refStr = [NSString stringWithFormat:@"refs/stash@{%zd}", _index];
55+
NSString *refStr = [NSString stringWithFormat:@"refs/stash@{%zd}", _index];
5656
return [[PBGitRef alloc] initWithString:refStr];
5757
}
5858

0 commit comments

Comments
 (0)