diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2022-02-07 21:33:00 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-08 09:49:20 -0800 |
commit | fe18733927c1d28ffcec3b52908989c591bc7b87 (patch) | |
tree | 2d26e45cb38e5bfe26a006cd8e83b8a4f015b168 /t | |
parent | worktree: create init_worktree_config() (diff) | |
download | tgif-fe18733927c1d28ffcec3b52908989c591bc7b87.tar.xz |
config: add repo_config_set_worktree_gently()
Some config settings, such as those for sparse-checkout, are likely
intended to only apply to one worktree at a time. To make this write
easier, add a new config API method, repo_config_set_worktree_gently().
This method will attempt to write to the worktree-specific config, but
will instead write to the common config file if worktree config is not
enabled. The next change will introduce a consumer of this method.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions