diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-10-25 19:40:19 +0000 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2019-10-03 08:39:49 +0200 |
commit | 1c847a6a70449d18b6fec05fbe83189ba79129ff (patch) | |
tree | cb740dcfdc0474b4e6249a3fe8f2273157291cba /src/commit.h | |
parent | 4aa36ff2c0fe2e7b29220737c757ffff99e00059 (diff) | |
download | libgit2-1c847a6a70449d18b6fec05fbe83189ba79129ff.tar.gz |
commit: generic parse mechanism
This allows us to pick which data from a commit we're interested in.
This will be used by the revwalk code, which is only interested in
parents' and committer data.
Diffstat (limited to 'src/commit.h')
-rw-r--r-- | src/commit.h | 6 |
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 |