Skip to content

[WIP] More config-batch commands#33

Merged
derrickstolee merged 5 commits intobatched-configfrom
config-batch-more
Feb 4, 2026
Merged

[WIP] More config-batch commands#33
derrickstolee merged 5 commits intobatched-configfrom
config-batch-more

Conversation

@derrickstolee
Copy link
Owner

This diff is a placeholder for new commands for the git config-batch command that is being proposed for upstream Git in gitgitgadget#2033.

It currently includes:

  1. set v1 command.
  2. unset v1 command.

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>
@derrickstolee derrickstolee merged commit 7fd96b8 into batched-config Feb 4, 2026
97 of 99 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant