Skip to content

Moving global state into the repository object (part 2)

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11packfile: allow prepare_packed_git_mru to handle arbitrary repositoriespackfile.c+5 -50 replies
2/11packfile: allow rearrange_packed_git to handle arbitrary repositoriespackfile.c+4 -40 replies
3/11packfile: allow install_packed_git to handle arbitrary repositoriesfast-import.c http.c packfile.c +1 more+7 -71 reply
4/11packfile: add repository argument to prepare_packed_git_onepackfile.c+4 -30 replies
5/11packfile: add repository argument to prepare_packed_gitbuiltin/count-objects.c builtin/fsck.c builtin/gc.c +9 more+18 -170 replies
6/11packfile: add repository argument to reprepare_packed_gitbuiltin/gc.c builtin/receive-pack.c bulk-checkin.c +4 more+11 -70 replies
7/11packfile: allow prepare_packed_git_one to handle arbitrary repositoriespackfile.c+3 -40 replies
8/11packfile: allow prepare_packed_git to handle arbitrary repositoriespackfile.c packfile.h+10 -110 replies
9/11packfile: allow reprepare_packed_git to handle arbitrary repositoriespackfile.c packfile.h+5 -60 replies
10/11packfile: add repository argument to find_pack_entrypackfile.c packfile.h sha1_file.c+11 -100 replies
11/11packfile: allow find_pack_entry to handle arbitrary repositoriespackfile.c packfile.h+6 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/11] Moving global state into the repository object (part 2)

This applies on top of origin/sb/object-store and is the continuation of that series, adding the repository as a context argument to functions.

This series focusses on packfile handling, exposing (re)prepare_packed_git and find_pack_entry to a repository argument.

Looking at the diffstat of "Delete ignore_env member in struct repository"[1] and "Fix initializing the_hash_algo"[2], which also build on origin/sb/object-store, this series looks rather orthogonal to those, so I would not a lot of merge conflicts.

[1] https://public-inbox.org/git/[email protected]/
[2] https://public-inbox.org/git/[email protected]/

The third series (after this one) will focus on object replacement, such that we can migrate sha1_object_info_extended at the end of the third series.

Thanks,
Stefan

Stefan Beller (11):
packfile: allow prepare_packed_git_mru to handle arbitrary
repositories
packfile: allow rearrange_packed_git to handle arbitrary repositories
packfile: allow install_packed_git to handle arbitrary repositories
packfile: add repository argument to prepare_packed_git_one
packfile: add repository argument to prepare_packed_git
packfile: add repository argument to reprepare_packed_git
packfile: allow prepare_packed_git_one to handle arbitrary
repositories
packfile: allow prepare_packed_git to handle arbitrary repositories
packfile: allow reprepare_packed_git to handle arbitrary repositories
packfile: add repository argument to find_pack_entry
packfile: allow find_pack_entry to handle arbitrary repositories

 builtin/count-objects.c  |  2 +-
 builtin/fsck.c           |  2 +-
 builtin/gc.c             |  4 +--
 builtin/pack-objects.c   |  2 +-
 builtin/pack-redundant.c |  2 +-
 builtin/receive-pack.c   |  3 +-
 bulk-checkin.c           |  3 +-
 fast-import.c            |  4 +--
 fetch-pack.c             |  3 +-
 http-backend.c           |  2 +-
 http.c                   |  2 +-
 pack-bitmap.c            |  2 +-
 packfile.c               | 72 +++++++++++++++++++---------------------
 packfile.h               | 12 ++++---
 server-info.c            |  2 +-
 sha1_file.c              |  8 ++---
 sha1_name.c              |  4 +--
 17 files changed, 66 insertions(+), 63 deletions(-)
Signature · 1 line
2.16.2.395.g2e18187dfd-goog