summaryrefslogtreecommitdiff
path: root/src/commit.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-10-03 12:55:48 +0200
committerGitHub <noreply@github.com>2019-10-03 12:55:48 +0200
commitf04a58b00c1a350e2cd90bddcdaa7865183c9d2f (patch)
treead03e6ecb8deb2e99ecfd8ca4c8923685e7ae119 /src/commit.h
parent0ec0b2bbd5c4ce5ccec172c63108d95057ec4c4d (diff)
parent5cf17e0f269387f8345201aef482a10c96490d95 (diff)
downloadlibgit2-f04a58b00c1a350e2cd90bddcdaa7865183c9d2f.tar.gz
Merge pull request #4445 from tiennou/shallow/dry-commit-parsing
DRY commit parsing
Diffstat (limited to 'src/commit.h')
-rw-r--r--src/commit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commit.h b/src/commit.h
index 9137a8fad..318ce5cba 100644
--- a/src/commit.h
+++ b/src/commit.h
@@ -37,4 +37,10 @@ void git_commit__free(void *commit);
int git_commit__parse(void *commit, git_odb_object *obj);
int git_commit__parse_raw(void *commit, const char *data, size_t size);
+typedef enum {
+ GIT_COMMIT_PARSE_QUICK = (1 << 0), /**< Only parse parents and committer info */
+} git_commit__parse_flags;
+
+int git_commit__parse_ext(git_commit *commit, git_odb_object *odb_obj, unsigned int flags);
+
#endif