summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-05-26 12:28:32 -0500
committerEdward Thomson <ethomson@github.com>2016-06-01 10:03:51 -0500
commit0d77a56f397b4d65bfcc0a5d66884dcac1ba7a16 (patch)
treeff0bede1cd7ae571bc19cc7fafe8337ee15dbdcc
parentc2f18b9b068c20760bfce9cdc81ef4c13f3307b5 (diff)
downloadlibgit2-0d77a56f397b4d65bfcc0a5d66884dcac1ba7a16.tar.gz
checkout: drop unused repo
-rw-r--r--src/commit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/commit.c b/src/commit.c
index 79ddf2a63..99a80855c 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -40,7 +40,6 @@ void git_commit__free(void *_commit)
static int git_commit__create_buffer_internal(
git_buf *out,
- git_repository *repo,
const git_signature *author,
const git_signature *committer,
const char *message_encoding,
@@ -51,7 +50,7 @@ static int git_commit__create_buffer_internal(
size_t i = 0;
const git_oid *parent;
- assert(out && repo && tree);
+ assert(out && tree);
git_oid__writebuf(out, "tree ", tree);
@@ -150,7 +149,7 @@ static int git_commit__create_internal(
if ((error = validate_tree_and_parents(&parents, repo, tree, parent_cb, parent_payload, current_id, validate)) < 0)
goto cleanup;
- error = git_commit__create_buffer_internal(&buf, repo, author, committer,
+ error = git_commit__create_buffer_internal(&buf, author, committer,
message_encoding, message, tree,
&parents);
@@ -813,7 +812,7 @@ int git_commit_create_buffer(git_buf *out,
return error;
error = git_commit__create_buffer_internal(
- out, repo, author, committer,
+ out, author, committer,
message_encoding, message, tree_id,
&parents_arr);