summaryrefslogtreecommitdiff
path: root/src/odb.h
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.h
parent3348570a0c544747f3a916010ee6064a91f98996 (diff)
downloadlibgit2-ethomson/freshen_trees.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.h')
-rw-r--r--src/odb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/odb.h b/src/odb.h
index 31a9fd1b9..76e82f1dd 100644
--- a/src/odb.h
+++ b/src/odb.h
@@ -98,6 +98,9 @@ int git_odb__read_header_or_object(
git_odb_object **out, size_t *len_p, git_otype *type_p,
git_odb *db, const git_oid *id);
+/* freshen an entry in the object database */
+int git_odb__freshen(git_odb *db, const git_oid *id);
+
/* fully free the object; internal method, DO NOT EXPORT */
void git_odb_object__free(void *object);