Skip to content

clean up push config callbacks

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2git_push_config: drop cargo-culted wt_status pointerbuiltin/push.c+1 -20 replies
2/2builtin/push.c: make push_default a static variablebuiltin/push.c cache.h config.c +1 more+33 -4310 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/2] clean up push config callbacks
Quoted 11 lines · Jeff King

But here you are adding to git_default_push_config, which is in another file.

I'm trying to figure out why git_default_push_config exists at all. The major difference from git_push_config is that the "default" variant will get loaded for _all_ commands, not just "push". So if it affected variables that were used by other commands, it would be needed. But all it sets is push_default, which seems to be specific to builtin/push.c.

So I suspect it can be removed entirely, and folded into git_config_push. But that's outside the scope of your patch.

Here's that cleanup, plus another one I noticed while doing it.

[1/2]: git_push_config: drop cargo-culted wt_status pointer [2/2]: builtin/push.c: make push_default a static variable

-Peff