Skip to content

cat-file replace handling and optimization

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5t1006: clean up broken objectst/t1006-cat-file.sh+9 -00 replies
2/5cat-file: mention --unordered along with --batch-all-objectsDocumentation/git-cat-file.txt+3 -289 replies
3/5cat-file: disable refs/replace with --batch-all-objectsDocumentation/git-cat-file.txt builtin/cat-file.c t/t1006-cat-file.sh+70 -12 replies
4/5cat-file: split ordered/unordered batch-all-objects callbacksbuiltin/cat-file.c+3 -10 replies
5/5cat-file: use packed_object_info() for --batch-all-objectsbuiltin/cat-file.c+31 -142 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] cat-file replace handling and optimization

This started as an optimization to have cat-file use the pack/offset info it gets during --batch-all-objects to avoid extra object lookups. And that does happen in the final patch.

But there was an interesting interaction with replace refs there, which led me to patch 3.

The other patches are relevant prep/cleanup.

  [1/5]: t1006: clean up broken objects
  [2/5]: cat-file: mention --unordered along with --batch-all-objects
  [3/5]: cat-file: disable refs/replace with --batch-all-objects
  [4/5]: cat-file: split ordered/unordered batch-all-objects callbacks
  [5/5]: cat-file: use packed_object_info() for --batch-all-objects
 Documentation/git-cat-file.txt |  6 ++-
 builtin/cat-file.c             | 49 +++++++++++++++-------
 t/t1006-cat-file.sh            | 75 ++++++++++++++++++++++++++++++++++
 3 files changed, 114 insertions(+), 16 deletions(-)

-Peff