Skip to content

connected: fix the connectivity check with alternates in deepening fetches

Igor Wiedler git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v22 patches 6 repliesSuperseded

Changes in v3 from the cover letter

* The shallow alternate test wrote $TRASH_DIRECTORY into objects/info/alternates, which git on Windows cannot resolve. It now uses Peff's version with $(pwd) and relative paths.

* The trace tests use $(pwd) instead of $PWD.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2connected: negate alternate refs in deepening fetches tooconnected.c t/t5618-alternate-refs.sh+16 -20 replies
2/2odb: ignore refs of shallow and grafted alternatesDocumentation/rev-list-options.adoc odb.c t/t5618-alternate-refs.sh+28 -31 reply

Reviews trailers per patch

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

PatchPatrick SteinhardtJunio C HamanoJeff King
1/2Helped-by Helped-by
2/2Helped-by Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] connected: fix the connectivity check with alternates in deepening fetches

In a deepening fetch the connectivity check passes "--alternate-refs" as a positive revision and walks the alternate's whole history. With a 7M-object alternate that takes 227s after a fetch of an empty pack.

Changes since v2:

* The shallow alternate test wrote $TRASH_DIRECTORY into objects/info/alternates, which git on Windows cannot resolve. It now uses Peff's version with $(pwd) and relative paths.

* The trace tests use $(pwd) instead of $PWD.

No code changes.

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

Igor Wiedler (2):
connected: negate alternate refs in deepening fetches too
odb: ignore refs of shallow and grafted alternates

 Documentation/rev-list-options.adoc |  7 ++++---
 connected.c                         |  6 ++++--
 odb.c                               | 11 +++++++++++
 t/t5618-alternate-refs.sh           | 25 +++++++++++++++++++++++++
 4 files changed, 44 insertions(+), 5 deletions(-)

base-commit: 6de20f6092dcf9bdb1c8efe03db4b70c82b423dd

Signature · 1 line
2.56.0