diff options
| author | lhchavez <lhchavez@lhchavez.com> | 2021-01-05 17:20:27 -0800 |
|---|---|---|
| committer | lhchavez <lhchavez@lhchavez.com> | 2021-03-10 07:09:47 -0800 |
| commit | 248606ebb0906076367fcfce9574f522f818c26f (patch) | |
| tree | a3d349ff8cc13ca5fc3a432c9967703f26a63328 /src/commit_list.h | |
| parent | 4f4b1139d23a7b38cceb9d83acbfaf73151f522f (diff) | |
| download | libgit2-248606ebb0906076367fcfce9574f522f818c26f.tar.gz | |
commit-graph: Use the commit-graph in revwalks
This change makes revwalks a bit faster by using the `commit-graph` file
(if present). This is thanks to the `commit-graph` allow much faster
parsing of the commit information by requiring near-zero I/O (aside from
reading a few dozen bytes off of a `mmap(2)`-ed file) for each commit,
instead of having to read the ODB, inflate the commit, and parse it.
This is done by modifying `git_commit_list_parse()` and letting it use
the ODB-owned commit-graph file.
Part of: #5757
Diffstat (limited to 'src/commit_list.h')
| -rw-r--r-- | src/commit_list.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commit_list.h b/src/commit_list.h index 6a65f8a76..a32377030 100644 --- a/src/commit_list.h +++ b/src/commit_list.h @@ -26,6 +26,7 @@ typedef struct git_commit_list_node { git_oid oid; int64_t time; + uint32_t generation; unsigned int seen:1, uninteresting:1, topo_delay:1, |
