Skip to content

Commit 6d5989b

Browse files
committed
Updated some indentations
1 parent d07b0f9 commit 6d5989b

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

ObjectiveGit/GTBranch.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ - (GTBranch *)trackingBranchWithError:(NSError **)error success:(BOOL *)success
193193
}
194194

195195
- (BOOL)updateTrackingBranch:(GTBranch *)trackingBranch error:(NSError **)error {
196-
int result = GIT_ENOTFOUND;
197-
if (trackingBranch.branchType == GTBranchTypeRemote) {
198-
result = git_branch_set_upstream(self.reference.git_reference, [trackingBranch.name stringByReplacingOccurrencesOfString:[GTBranch remoteNamePrefix] withString:@""].UTF8String);
196+
int result = GIT_ENOTFOUND;
197+
if (trackingBranch.branchType == GTBranchTypeRemote) {
198+
result = git_branch_set_upstream(self.reference.git_reference, [trackingBranch.name stringByReplacingOccurrencesOfString:[GTBranch remoteNamePrefix] withString:@""].UTF8String);
199199
} else {
200200
result = git_branch_set_upstream(self.reference.git_reference, trackingBranch.shortName.UTF8String);
201201
}

ObjectiveGit/GTRepository+RemoteOperations.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ extern NSString *const GTRepositoryRemoteOptionsCredentialProvider;
8383
/// Recognized options are:
8484
/// `GTRepositoryRemoteOptionsCredentialProvider`
8585
/// error - The error if one occurred. Can be NULL.
86-
/// progressBlock - An optional callback for monitoring progress.
8786
///
8887
/// Returns YES if the push was successful, NO otherwise (and `error`, if provided,
8988
/// will point to an error describing what happened).
90-
- (BOOL)deleteBranch:(GTBranch *)branch fromRemote:(GTRemote *)remote withOptions:(NSDictionary *)options error:(NSError **)error progress:(void (^)(unsigned int current, unsigned int total, size_t bytes, BOOL *stop))progressBlock;
89+
- (BOOL)deleteBranch:(GTBranch *)branch fromRemote:(GTRemote *)remote withOptions:(NSDictionary *)options error:(NSError **)error;
9190
@end

ObjectiveGit/GTRepository+RemoteOperations.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ - (BOOL)pushBranches:(NSArray *)branches toRemote:(GTRemote *)remote withOptions
197197
}
198198

199199
#pragma mark - Deletion (Public)
200-
- (BOOL)deleteBranch:(GTBranch *)branch fromRemote:(GTRemote *)remote withOptions:(NSDictionary *)options error:(NSError **)error progress:(GTRemotePushTransferProgressBlock)progressBlock {
201-
NSParameterAssert(branch != nil);
202-
NSParameterAssert(remote != nil);
200+
- (BOOL)deleteBranch:(GTBranch *)branch fromRemote:(GTRemote *)remote withOptions:(NSDictionary *)options error:(NSError **)error {
201+
NSParameterAssert(branch != nil);
202+
NSParameterAssert(remote != nil);
203203

204-
NSArray *refspecs = @[[NSString stringWithFormat:@":refs/heads/%@", branch.shortName]];
204+
NSArray *refspecs = @[ [NSString stringWithFormat:@":refs/heads/%@", branch.shortName] ];
205205

206-
return [self pushRefspecs:refspecs toRemote:remote withOptions:options error:error progress:progressBlock];
206+
return [self pushRefspecs:refspecs toRemote:remote withOptions:options error:error progress:nil];
207207
}
208208

209209
#pragma mark - Push (Private)

0 commit comments

Comments
 (0)