Skip to content

builtin/prune: remove dependency on global variables and 'the_repository'

Ayush Chandekar git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2repository: move 'repository_format_precious_objects' to repo scopebuiltin/gc.c builtin/prune.c builtin/repack.c +5 more+9 -72 replies
2/2builtin/prune: stop depending on 'the_repository'builtin/prune.c+12 -132 replies

Reviews trailers per patch

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

PatchChristian CouderGhanshyam Thakkar
SeriesMentored-by Mentored-by Mentored-by Mentored-by Mentored-by Mentored-by Mentored-by Mentored-by
1/2
2/2

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

Read the v1 thread

Cover letter [GSOC PATCH 0/2] builtin/prune: remove dependency on global variables and 'the_repository'

The aim of this patch series is to remove the definition '#define USE_THE_REPOSITORY_VARIABLE' from "builtin/prune.c" by removing global variables and the global 'the_repository'.

This patch series contains two patches:

1 - Move the global variable 'repository_format_precious_objects' into 'struct repository' and update all affected code paths accordingly.

2 - Remove the dependency of 'the_repository' in "builtin/prunce.c", allowing the removal of the definition.

Ayush Chandekar (2):
repository: move 'repository_format_precious_objects' to repo scope builtin/prune: stop depending on 'the_repository'

 builtin/gc.c     |  2 +-
 builtin/prune.c  | 25 ++++++++++++-------------
 builtin/repack.c |  2 +-
 environment.c    |  1 -
 environment.h    |  2 --
 repository.c     |  1 +
 repository.h     |  1 +
 setup.c          |  5 ++++-
 8 files changed, 20 insertions(+), 19 deletions(-)
Signature · 1 line
2.49.0