@@ -62,7 +62,7 @@ NS_ASSUME_NONNULL_BEGIN
62
62
// / will cause enumeration to stop after the block returns. Must not be nil.
63
63
- (void )enumerateStashesUsingBlock : (void (^)(NSUInteger index, NSString * __nullable message, GTOID * __nullable oid, BOOL *stop))block ;
64
64
65
- // / Apply stashed changes.
65
+ // / Apply stashed changes (with a default checkout strategy) .
66
66
// /
67
67
// / index - The index of the stash to apply. 0 is the latest one.
68
68
// / flags - The flags to use when applying the stash.
@@ -71,7 +71,17 @@ NS_ASSUME_NONNULL_BEGIN
71
71
// / Returns YES if the requested stash was successfully applied, NO otherwise.
72
72
- (BOOL )applyStashAtIndex : (NSUInteger )index flags : (GTRepositoryStashApplyFlag)flags error : (NSError **)error progressBlock : (nullable void (^)(GTRepositoryStashApplyProgress progress, BOOL *stop))progressBlock;
73
73
74
- // / Pop stashed changes.
74
+ // / Apply stashed changes with a set checkout strategy.
75
+ // /
76
+ // / index - The index of the stash to apply. 0 is the latest one.
77
+ // / flags - The flags to use when applying the stash.
78
+ // / strategy - The checkout strategy to use when applying the stash.
79
+ // / error - If not NULL, set to any error that occurred.
80
+ // /
81
+ // / Returns YES if the requested stash was successfully applied, NO otherwise.
82
+ - (BOOL )applyStashAtIndex : (NSUInteger )index flags : (GTRepositoryStashApplyFlag)flags strategy : (GTCheckoutStrategyType)strategy error : (NSError **)error progressBlock : (nullable void (^)(GTRepositoryStashApplyProgress progress, BOOL *stop))progressBlock;
83
+
84
+ // / Pop stashed changes (with a default checkout strategy).
75
85
// /
76
86
// / index - The index of the stash to apply. 0 is the most recent stash.
77
87
// / flags - The flags to use when applying the stash.
@@ -80,6 +90,16 @@ NS_ASSUME_NONNULL_BEGIN
80
90
// / Returns YES if the requested stash was successfully applied, NO otherwise.
81
91
- (BOOL )popStashAtIndex : (NSUInteger )index flags : (GTRepositoryStashApplyFlag)flags error : (NSError **)error progressBlock : (nullable void (^)(GTRepositoryStashApplyProgress progress, BOOL *stop))progressBlock;
82
92
93
+ // / Pop stashed changes with a set checkout strategy.
94
+ // /
95
+ // / index - The index of the stash to apply. 0 is the most recent stash.
96
+ // / flags - The flags to use when applying the stash.
97
+ // / strategy - The checkout strategy to use when applying the stash.
98
+ // / error - If not NULL, set to any error that occurred.
99
+ // /
100
+ // / Returns YES if the requested stash was successfully applied, NO otherwise.
101
+ - (BOOL )popStashAtIndex : (NSUInteger )index flags : (GTRepositoryStashApplyFlag)flags strategy : (GTCheckoutStrategyType)strategy error : (NSError **)error progressBlock : (nullable void (^)(GTRepositoryStashApplyProgress progress, BOOL *stop))progressBlock;
102
+
83
103
// / Drop a stash from the repository's list of stashes.
84
104
// /
85
105
// / index - The index of the stash to drop, where 0 is the most recent stash.
0 commit comments