@@ -62,7 +62,7 @@ NS_ASSUME_NONNULL_BEGIN
6262// / will cause enumeration to stop after the block returns. Must not be nil.
6363- (void )enumerateStashesUsingBlock : (void (^)(NSUInteger index, NSString * __nullable message, GTOID * __nullable oid, BOOL *stop))block ;
6464
65- // / Apply stashed changes.
65+ // / Apply stashed changes (with a default checkout strategy) .
6666// /
6767// / index - The index of the stash to apply. 0 is the latest one.
6868// / flags - The flags to use when applying the stash.
@@ -71,7 +71,17 @@ NS_ASSUME_NONNULL_BEGIN
7171// / Returns YES if the requested stash was successfully applied, NO otherwise.
7272- (BOOL )applyStashAtIndex : (NSUInteger )index flags : (GTRepositoryStashApplyFlag)flags error : (NSError **)error progressBlock : (nullable void (^)(GTRepositoryStashApplyProgress progress, BOOL *stop))progressBlock;
7373
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).
7585// /
7686// / index - The index of the stash to apply. 0 is the most recent stash.
7787// / flags - The flags to use when applying the stash.
@@ -80,6 +90,16 @@ NS_ASSUME_NONNULL_BEGIN
8090// / Returns YES if the requested stash was successfully applied, NO otherwise.
8191- (BOOL )popStashAtIndex : (NSUInteger )index flags : (GTRepositoryStashApplyFlag)flags error : (NSError **)error progressBlock : (nullable void (^)(GTRepositoryStashApplyProgress progress, BOOL *stop))progressBlock;
8292
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+
83103// / Drop a stash from the repository's list of stashes.
84104// /
85105// / index - The index of the stash to drop, where 0 is the most recent stash.
0 commit comments