File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ NS_ASSUME_NONNULL_BEGIN
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.
69- // / options - The options to use when checking out.
69+ // / options - The options to use when checking out (if nil, use the defaults provided by libgit2) .
7070// / error - If not NULL, set to any error that occurred.
7171// / progressBlock - A block that will be executed on each step of the stash application.
7272// /
@@ -77,7 +77,7 @@ NS_ASSUME_NONNULL_BEGIN
7777// /
7878// / index - The index of the stash to apply. 0 is the most recent stash.
7979// / flags - The flags to use when applying the stash.
80- // / options - The options to use when checking out.
80+ // / options - The options to use when checking out (if nil, use the defaults provided by libgit2) .
8181// / error - If not NULL, set to any error that occurred.
8282// / progressBlock - A block that will be executed on each step of the stash application.
8383// /
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ - (BOOL)applyStashAtIndex:(NSUInteger)index flags:(GTRepositoryStashApplyFlag)fl
6363 git_stash_apply_options stash_options = GIT_STASH_APPLY_OPTIONS_INIT;
6464
6565 stash_options.flags = (git_stash_apply_flags)flags;
66+
6667 if (progressBlock != nil ) {
6768 stash_options.progress_cb = stashApplyProgressCallback;
6869 stash_options.progress_payload = (__bridge void *)progressBlock;
@@ -84,6 +85,7 @@ - (BOOL)popStashAtIndex:(NSUInteger)index flags:(GTRepositoryStashApplyFlag)flag
8485 git_stash_apply_options stash_options = GIT_STASH_APPLY_OPTIONS_INIT;
8586
8687 stash_options.flags = (git_stash_apply_flags)flags;
88+
8789 if (progressBlock != nil ) {
8890 stash_options.progress_cb = stashApplyProgressCallback;
8991 stash_options.progress_payload = (__bridge void *)progressBlock;
You can’t perform that action at this time.
0 commit comments