summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-06-29 15:17:58 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2015-06-29 21:23:09 +0000
commit149d5d8a504aaa44d90a9630fc5f70cd4a37bb91 (patch)
treed321a10f2867cee20012d0711c5d0b86ce909fff
parentded4ccab01e465018da7f9020d20d140ae270ba8 (diff)
downloadlibgit2-149d5d8a504aaa44d90a9630fc5f70cd4a37bb91.tar.gz
stash: drop unused variable
-rw-r--r--src/stash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stash.c b/src/stash.c
index 59ecd3b07..acf89442a 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -793,7 +793,6 @@ static int stage_new_file(const git_index_entry **entries, void *data)
static int stage_new_files(
git_index **out,
- git_repository *repo,
git_tree *parent_tree,
git_tree *tree)
{
@@ -886,7 +885,7 @@ int git_stash_apply(
*/
} else if ((opts.flags & GIT_STASH_APPLY_REINSTATE_INDEX) == 0) {
if ((error = stage_new_files(
- &stash_adds, repo, stash_parent_tree, stash_tree)) < 0 ||
+ &stash_adds, stash_parent_tree, stash_tree)) < 0 ||
(error = merge_indexes(
&unstashed_index, repo, stash_parent_tree, repo_index, stash_adds)) < 0)
goto cleanup;