Skip to content

builtin/commit-graph: some small cleanups

Patrick Steinhardt git 1 version In review

Get series with b4
b4 am [email protected] change-id 20261028-pks-commit-graph-cleanups-d1dc30f3e05a

Versions newest first

  1. v1 Latest7 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7builtin/commit-graph: rename subcommand functionsbuiltin/commit-graph.c+10 -60 replies
2/7builtin/commit-graph: drop declaration for `read_replace_refs`builtin/commit-graph.c+0 -10 replies
3/7builtin/commit-graph: get rid of `the_repository`builtin/commit-graph.c+20 -190 replies
4/7builtin/commit-graph: drop global "--object-dir=" switchbuiltin/commit-graph.c+1 -30 replies
5/7builtin/commit-graph: simplify how we wire up common optionsbuiltin/commit-graph.c+8 -190 replies
6/7builtin/commit-graph: de-globalize write options handlingbuiltin/commit-graph.c+16 -90 replies
7/7builtin/commit-graph: de-globalize options handlingbuiltin/commit-graph.c+18 -131 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] builtin/commit-graph: some small cleanups

Hi,

I'm working into the direction of making commit-graphs pluggable so that backends can fully control where exactly commit-graphs are written to and read from. This patch series contains a couple of small preliminary cleanups.

Most of the patches are rather uncontroversial, I'd assume. The only one that might raise some eyebrows is where I "fix" git-commit-graph(1) to only accept "--object-directory=" for subcommands instead of both as a command-global and subcommand option. I feel like this is quite a weird outlier, and it got in my way. In any case, I'd appreciate some extra thoughts on this.

Thanks!

Patrick

---
Patrick Steinhardt (7):
builtin/commit-graph: rename subcommand functions builtin/commit-graph: drop declaration for read_replace_refs builtin/commit-graph: get rid of the_repository builtin/commit-graph: drop global "--object-dir=" switch builtin/commit-graph: simplify how we wire up common options builtin/commit-graph: de-globalize write options handling builtin/commit-graph: de-globalize options handling

 builtin/commit-graph.c | 131 +++++++++++++++++++++++++------------------------
 1 file changed, 67 insertions(+), 64 deletions(-)

---
base-commit: 37b3475fb530c14109211faca33716a173db61ed
change-id: 20261028-pks-commit-graph-cleanups-d1dc30f3e05a