Skip to content

config include directives

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4config: add include directiveDocumentation/config.txt Documentation/git-config.txt builtin/config.c +3 more+204 -715 replies
2/4config: factor out config file stack managementconfig.c+19 -110 replies
3/4config: support parsing config data from bufferscache.h config.c+54 -50 replies
4/4config: allow including config from repository blobsDocumentation/config.txt config.c t/t1305-config-include.sh+102 -214 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC/PATCH 0/4] config include directives

This series provides a way for config files to include other config files in two ways:

1. From other files in the filesystem. This is implemented by patch 1 below, and is hopefully straightforward and uncontroversial. See that patch for more rationale.

2. From blobs in the repo. This is implemented by patch 4, with patches 2 and 3 providing the necessary refactoring. This is one way of implementing the often asked-for "respect shared config inside the repo" feature, but attempts to mitigate some of the security concerns. The interface for using it safely is a bit raw, but I think it's a sane building block, and somebody could write a fancier shared-config updater on top of it if they wanted to.

[1/4]: config: add include directive
[2/4]: config: factor out config file stack management [3/4]: config: support parsing config data from buffers [4/4]: config: allow including config from repository blobs

-Peff