File tree 4 files changed +18
-17
lines changed
4 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 12
12
13
13
@interface PBGitSVStashItem : PBSourceViewItem
14
14
15
- + (id ) itemWithStash : (PBGitStash*)stash ;
15
+ + (id )itemWithStash : (PBGitStash *)stash ;
16
16
17
- @property (nonatomic , strong ) PBGitStash* stash;
17
+ @property (nonatomic , strong ) PBGitStash * stash;
18
18
19
19
@end
Original file line number Diff line number Diff line change @@ -14,14 +14,15 @@ @implementation PBGitSVStashItem
14
14
15
15
+ (id )itemWithStash : (PBGitStash *)stash
16
16
{
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];
19
19
item.stash = stash;
20
20
item.revSpecifier = [[PBGitRevSpecifier alloc ] initWithRef: stash.ref];
21
21
return item;
22
22
}
23
23
24
- -(PBGitRef *)ref {
24
+ -(PBGitRef *)ref
25
+ {
25
26
return self.stash .ref ;
26
27
}
27
28
Original file line number Diff line number Diff line change 15
15
16
16
@interface PBGitStash : NSObject
17
17
@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;
21
21
22
- @property (nonatomic , readonly ) PBGitCommit * indexCommit;
23
- @property (nonatomic , readonly ) PBGitCommit * ancesterCommit;
22
+ @property (nonatomic , readonly ) PBGitCommit *indexCommit;
23
+ @property (nonatomic , readonly ) PBGitCommit *ancesterCommit;
24
24
25
25
- (id ) initWithRepository : (PBGitRepository *)repo stashOID : (git_oid)stash_id index : (size_t )index message : (NSString *)message ;
26
26
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ -(id)initWithRepository:(PBGitRepository *)repo stashOID:(git_oid)stash_id index
29
29
_index = index ;
30
30
_message = message;
31
31
32
- GTRepository * gtRepo = repo.gtRepo ;
33
- NSError * error = nil ;
32
+ GTRepository *gtRepo = repo.gtRepo ;
33
+ NSError *error = nil ;
34
34
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 ];
39
39
40
40
_commit = [[PBGitCommit alloc ] initWithRepository: repo andCommit: gtCommit];
41
41
_indexCommit = [[PBGitCommit alloc ] initWithRepository: repo andCommit: gtIndexCommit];
@@ -52,7 +52,7 @@ -(NSString *)description
52
52
53
53
-(PBGitRef *)ref
54
54
{
55
- NSString * refStr = [NSString stringWithFormat: @" refs/stash@{%zd }" , _index];
55
+ NSString *refStr = [NSString stringWithFormat: @" refs/stash@{%zd }" , _index];
56
56
return [[PBGitRef alloc ] initWithString: refStr];
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments