Skip to content

revision: fix reachable commits being gc'ed in partial repo

Calvin Wan git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2packfile: split promisor objects oidset into twopackfile.c packfile.h+21 -101 reply
2/2fetch-pack.c: do not declare local commits as "have" in partial reposfetch-pack.c t/t5616-partial-clone.sh+43 -35 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJonathan Tan
1/2
2/2Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] revision: fix reachable commits being gc'ed in partial repo

I took the first patch of Han Young's original series and implemented the fix suggested by Jonathan[1]. While all of his ideas would've worked, the first one ends up being the simplest to implement at the cost of minor network resources but saves on CPU compared to the other ideas. This series does not fix repositories that were previously broken by this issue, but broken repositories can easily fix themselves by refetching the missing commit, so there isn't much benefit adding preventative measures to gc.

[1] https://lore.kernel.org/git/[email protected]/

Calvin Wan (1):
fetch-pack.c: do not declare local commits as "have" in partial repos

Han Young (1):
packfile: split promisor objects oidset into two

 fetch-pack.c             | 17 ++++++++++++++---
 packfile.c               | 24 +++++++++++++++---------
 packfile.h               |  7 ++++++-
 t/t5616-partial-clone.sh | 29 +++++++++++++++++++++++++++++
 4 files changed, 64 insertions(+), 13 deletions(-)
Signature · 1 line
2.46.0.792.g87dc391469-goog