diff options
| author | Taylor Blau <me@ttaylorr.com> | 2023-06-07 18:58:12 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-06-12 14:08:51 -0700 |
| commit | 01e9ca4a40e04cceeed01da05bed182556daa005 (patch) | |
| tree | df068c3d32a54a3016b51ec7528a6cba15f2bf49 /builtin/commit-graph.c | |
| parent | The sixteenth batch (diff) | |
| download | git-01e9ca4a40e04cceeed01da05bed182556daa005.tar.gz git-01e9ca4a40e04cceeed01da05bed182556daa005.zip | |
reachable.c: extract `obj_is_recent()`
When enumerating objects in order to add recent ones (i.e. those whose
mtime is strictly newer than the cutoff) as tips of a reachability
traversal, `add_recent_object()` discards objects which do not meet the
recency criteria.
The subsequent commit will make checking whether or not an object is
recent also consult the list of hooks in `pack.recentHook`. Isolate this
check in its own function to keep the additional complexity outside of
`add_recent_object()`.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions
