Skip to content

Commit c7f658a

Browse files
committed
🔥 -reloadSubmodules: 🔥
1 parent 89b339f commit c7f658a

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

ObjectiveGit/GTRepository.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -383,16 +383,6 @@ NS_ASSUME_NONNULL_BEGIN
383383
/// Returns the signature.
384384
- (GTSignature *)userSignatureForNow;
385385

386-
/// Reloads all cached information about the receiver's submodules.
387-
///
388-
/// Existing GTSubmodule objects from this repository will be mutated as part of
389-
/// this operation.
390-
///
391-
/// error - If not NULL, set to any errors that occur.
392-
///
393-
/// Returns whether the reload succeeded.
394-
- (BOOL)reloadSubmodules:(NSError **)error;
395-
396386
/// Enumerates over all the tracked submodules in the repository.
397387
///
398388
/// recursive - Whether to recurse into nested submodules, depth-first.

ObjectiveGit/GTRepository.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -674,16 +674,6 @@ static int submoduleEnumerationCallback(git_submodule *git_submodule, const char
674674
return 0;
675675
}
676676

677-
- (BOOL)reloadSubmodules:(NSError **)error {
678-
int gitError = git_submodule_reload_all(self.git_repository, 0);
679-
if (gitError != GIT_OK) {
680-
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to reload submodules."];
681-
return NO;
682-
}
683-
684-
return YES;
685-
}
686-
687677
- (void)enumerateSubmodulesRecursively:(BOOL)recursive usingBlock:(void (^)(GTSubmodule *submodule, NSError *error, BOOL *stop))block {
688678
NSParameterAssert(block != nil);
689679

0 commit comments

Comments
 (0)