Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 149d5d8

Browse files
committed
stash: drop unused variable
1 parent ded4cca commit 149d5d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/stash.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,6 @@ static int stage_new_file(const git_index_entry **entries, void *data)
793793

794794
static int stage_new_files(
795795
git_index **out,
796-
git_repository *repo,
797796
git_tree *parent_tree,
798797
git_tree *tree)
799798
{
@@ -886,7 +885,7 @@ int git_stash_apply(
886885
*/
887886
} else if ((opts.flags & GIT_STASH_APPLY_REINSTATE_INDEX) == 0) {
888887
if ((error = stage_new_files(
889-
&stash_adds, repo, stash_parent_tree, stash_tree)) < 0 ||
888+
&stash_adds, stash_parent_tree, stash_tree)) < 0 ||
890889
(error = merge_indexes(
891890
&unstashed_index, repo, stash_parent_tree, repo_index, stash_adds)) < 0)
892891
goto cleanup;

0 commit comments

Comments
 (0)