[WIP] More config-batch commands#33
Merged
derrickstolee merged 5 commits intobatched-configfrom Feb 4, 2026
Merged
Conversation
Before reusing these concepts in builtin/config-batch.c, extract the config_location_options struct from builtin/config.c to config.h with implementation in config.c. The only modification in this conversion is the use of a repository parameter instead of the_repository. Signed-off-by: Derrick Stolee <stolee@gmail.com>
The 'help' and 'get' commands of 'git config-batch' have not needed the prefix parameter from the builtin entrance point, but an upcoming command will need it in order to identify the location of the appropriate config file. Pass it through the appropriate functions and function pointers. Signed-off-by: Derrick Stolee <stolee@gmail.com>
This new command is intended for single-value assignments to a specific chosen scope. More complicated versions of the 'git config set' command will be incorporated into future commands. Signed-off-by: Derrick Stolee <stolee@gmail.com>
This new test will be extended in the future to ensure that multiple commands that execute in order update the configuration state enough to reflect new written values as we read them in later commands. Signed-off-by: Derrick Stolee <stolee@gmail.com>
Add a new 'unset' command with version 1 that mimics 'git config --unset' with optional regex pattern or '--fixed-value' arguments. Signed-off-by: Derrick Stolee <stolee@gmail.com>
derrickstolee
pushed a commit
that referenced
this pull request
Feb 3, 2026
Add virtual file system settings and hook proc. On index load, clear/set the skip worktree bits based on the virtual file system data. Use virtual file system data to update skip-worktree bit in unpack-trees. Use virtual file system data to exclude files and folders not explicitly requested. The hook was first contributed in private, but was extended via the following pull requests: #15 #27 #33 git#70 Signed-off-by: Ben Peart <Ben.Peart@microsoft.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This diff is a placeholder for new commands for the
git config-batchcommand that is being proposed for upstream Git in gitgitgadget#2033.It currently includes:
setv1 command.unsetv1 command.