summaryrefslogtreecommitdiff
path: root/commit-reach.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-07-20 16:33:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-20 22:38:55 (GMT)
commit118be5785e2c8c90e7407bad4b4a33319ff47db3 (patch)
treec3396ba81746053f57e57ff2db28ee71bc515245 /commit-reach.c
parent921bf7734f11da75516bfd12da5e4fa203cc6d19 (diff)
downloadgit-118be5785e2c8c90e7407bad4b4a33319ff47db3.zip
git-118be5785e2c8c90e7407bad4b4a33319ff47db3.tar.gz
git-118be5785e2c8c90e7407bad4b4a33319ff47db3.tar.bz2
upload-pack: generalize commit date cutoff
The ok_to_give_up() method uses the commit date as a cutoff to avoid walking the entire reachble set of commits. Before moving the reachable() method to commit-reach.c, pull out the dependence on the global constant 'oldest_have' with a 'min_commit_date' parameter. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-reach.c')
0 files changed, 0 insertions, 0 deletions