summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2017-03-03 13:26:29 +0000
committerEdward Thomson <ethomson@github.com>2017-03-03 14:12:00 +0000
commit52d03f37f70ebde3e0a7794a60dbf68d0e69b9e8 (patch)
treeba8f647aca21274e92de8d3fecfa85199aa8cde3 /src/odb.c
parent3348570a0c544747f3a916010ee6064a91f98996 (diff)
downloadlibgit2-52d03f37f70ebde3e0a7794a60dbf68d0e69b9e8.tar.gz
git_commit_create: freshen tree objects in commitethomson/freshen_trees
Freshen the tree object that a commit points to during commit time.
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/odb.c b/src/odb.c
index dc98a6ff7..3f2ac02f3 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -695,7 +695,7 @@ static int odb_freshen_1(
return (int)found;
}
-static int odb_freshen(git_odb *db, const git_oid *id)
+int git_odb__freshen(git_odb *db, const git_oid *id)
{
assert(db && id);
@@ -1167,7 +1167,7 @@ int git_odb_write(
assert(oid && db);
git_odb_hash(oid, data, len, type);
- if (odb_freshen(db, oid))
+ if (git_odb__freshen(db, oid))
return 0;
for (i = 0; i < db->backends.length && error < 0; ++i) {
@@ -1293,7 +1293,7 @@ int git_odb_stream_finalize_write(git_oid *out, git_odb_stream *stream)
git_hash_final(out, stream->hash_ctx);
- if (odb_freshen(stream->backend->odb, out))
+ if (git_odb__freshen(stream->backend->odb, out))
return 0;
return stream->finalize_write(stream, out);