77//
88
99#import " GTRepository.h"
10+ #import " git2/remote.h"
1011
1112@class GTFetchHeadEntry;
1213
@@ -15,6 +16,20 @@ NS_ASSUME_NONNULL_BEGIN
1516// / A `GTCredentialProvider`, that will be used to authenticate against the remote.
1617extern NSString *const GTRepositoryRemoteOptionsCredentialProvider;
1718
19+ // / A `GTFetchPruneOption`, that will be used to determine if the fetch should prune or not.
20+ extern NSString *const GTRepositoryRemoteOptionsFetchPrune;
21+
22+ // / A `GTRemoteAutoTagOption`, that will be used to determine how the fetch should handle tags.
23+ extern NSString *const GTRepositoryRemoteOptionsDownloadTags;
24+
25+ // / An enum describing the data needed for pruning.
26+ // / See `git_fetch_prune_t`.
27+ typedef NS_ENUM (NSInteger , GTFetchPruneOption) {
28+ GTFetchPruneOptionUnspecified = GIT_FETCH_PRUNE_UNSPECIFIED,
29+ GTFetchPruneOptionYes = GIT_FETCH_PRUNE,
30+ GTFetchPruneOptionNo = GIT_FETCH_NO_PRUNE,
31+ };
32+
1833@interface GTRepository (RemoteOperations)
1934
2035#pragma mark - Fetch
@@ -25,6 +40,8 @@ extern NSString *const GTRepositoryRemoteOptionsCredentialProvider;
2540// / options - Options applied to the fetch operation. May be nil.
2641// / Recognized options are :
2742// / `GTRepositoryRemoteOptionsCredentialProvider`
43+ // / `GTRepositoryRemoteOptionsFetchPrune`
44+ // / `GTRepositoryRemoteOptionsDownloadTags`
2845// / error - The error if one occurred. Can be NULL.
2946// / progressBlock - Optional callback to receive fetch progress stats during the
3047// / transfer. May be nil.
0 commit comments