mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 19:37:29 +00:00
![]() The following new external methods have been added: GIT_EXTERN(const char *) git_commit_message_short(git_commit *commit); GIT_EXTERN(const char *) git_commit_message(git_commit *commit); GIT_EXTERN(time_t) git_commit_time(git_commit *commit); GIT_EXTERN(const git_commit_person *) git_commit_committer(git_commit *commit); GIT_EXTERN(const git_commit_person *) git_commit_author(git_commit *commit); GIT_EXTERN(const git_tree *) git_commit_tree(git_commit *commit); A new structure, git_commit_person has been added to represent a commit's author or committer. The parsing of a commit has been split in two phases. When adding a commit to the revision pool: - the commit's ODB object is opened - its raw contents are parsed for commit TIME, PARENTS and TREE (the minimal amount of data required to traverse the pool) - the commit's ODB object is closed When querying for extended information on a commit: - the commit's ODB object is reopened - its raw contents are parsed for the requested information - the commit's ODB object remains open to handle additional queries New unit tests have been added for the new functionality: In t0401-parse: parse_person_test In t0402-details: query_details_test Signed-off-by: Vicent Marti <tanoku@gmail.com> |
||
---|---|---|
.. | ||
t0501-objects | ||
.gitignore | ||
Makefile | ||
NAMING | ||
t0001-errno.c | ||
t0002-refcnt.c | ||
t0003-strutil.c | ||
t0020-dirent.c | ||
t0101-hash.c | ||
t0101-oid.c | ||
t0102-objtype.c | ||
t0103-objhash.c | ||
t0201-existsloose.c | ||
t0202-readloose.c | ||
t0203-readloose.c | ||
t0301-write.c | ||
t0401-parse.c | ||
t0402-details.c | ||
t0403-lists.c | ||
t0501-walk.c | ||
t0502-table.c | ||
t0503-tableit.c | ||
test_helpers.c | ||
test_helpers.h | ||
test_lib.c | ||
test_lib.h | ||
test_main.c | ||
tests.supp |