Skip to content

run-command: stop using the_repository

Burak Kaan Karaçay git 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v21 patch 1 replySuperseded
  3. v14 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Added the second patch at the suggestion of Patrick to fully clean up the file.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2run-command: wean start_command() off the_repositorybuiltin/gc.c builtin/pull.c run-command.c +1 more+14 -100 replies
2/2run-command: wean auto_maintenance() functions off the_repositorybuiltin/am.c builtin/commit.c builtin/fetch.c +5 more+21 -160 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] run-command: stop using the_repository

Hi,

This patch series aims to remove the_repository dependency in 'run-command.c'.

The first patch removes the dependency in start_command() by replacing the boolean 'close_object_store' flag with a pointer to the target object store.

The second patch handles the prepare_auto_maintenance() and run_auto_maintenance() functions by passing a 'struct repository *' parameter. With no global repository dependencies left, it drops the USE_THE_REPOSITORY_VARIABLE macro from the file.

Changes in v3:
- Added the second patch at the suggestion of Patrick to fully clean up the file.

Changes in v2:
- Dropped the wrapper approach and rewrote the patch around the approach suggested by René.

Thanks for all guidance,
Burak Kaan Karaçay

Burak Kaan Karaçay (2):
run-command: wean start_command() off the_repository
run-command: wean auto_maintenance() functions off the_repository

 builtin/am.c           |  2 +-
 builtin/commit.c       |  2 +-
 builtin/fetch.c        |  2 +-
 builtin/gc.c           | 14 +++++++++-----
 builtin/merge.c        |  2 +-
 builtin/pull.c         |  2 +-
 builtin/rebase.c       |  4 +++-
 builtin/receive-pack.c |  2 +-
 run-command.c          | 20 ++++++++++----------
 run-command.h          |  9 ++++++---
 10 files changed, 34 insertions(+), 25 deletions(-)
Signature · 1 line
2.53.0