Skip to content

Commit 8415507

Browse files
pks-tgitster
authored andcommitted
builtin/config: move "fixed-value" option to correct group
The `--fixed-value` option can be used to alter how the value-pattern parameter is interpreted for the various actions of git-config(1). But while it is an option, it is currently listed as part of the actions group, which is wrong. Move the option to the "Other" group, which hosts the various options known to git-config(1). Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 424a29c commit 8415507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,6 @@ static struct option builtin_config_options[] = {
643643
OPT_BIT(0, "rename-section", &actions, N_("rename section: old-name new-name"), ACTION_RENAME_SECTION),
644644
OPT_BIT(0, "remove-section", &actions, N_("remove a section: name"), ACTION_REMOVE_SECTION),
645645
OPT_BIT('l', "list", &actions, N_("list all"), ACTION_LIST),
646-
OPT_BOOL(0, "fixed-value", &fixed_value, N_("use string equality when comparing values to 'value-pattern'")),
647646
OPT_BIT('e', "edit", &actions, N_("open an editor"), ACTION_EDIT),
648647
OPT_BIT(0, "get-color", &actions, N_("find the color configured: slot [default]"), ACTION_GET_COLOR),
649648
OPT_BIT(0, "get-colorbool", &actions, N_("find the color setting: slot [stdout-is-tty]"), ACTION_GET_COLORBOOL),
@@ -663,6 +662,7 @@ static struct option builtin_config_options[] = {
663662
OPT_BOOL(0, "show-scope", &show_scope, N_("show scope of config (worktree, local, global, system, command)")),
664663
OPT_STRING(0, "default", &default_value, N_("value"), N_("with --get, use default value when missing entry")),
665664
OPT_STRING(0, "comment", &comment_arg, N_("value"), N_("human-readable comment string (# will be prepended as needed)")),
665+
OPT_BOOL(0, "fixed-value", &fixed_value, N_("use string equality when comparing values to 'value-pattern'")),
666666
OPT_END(),
667667
};
668668

0 commit comments

Comments
 (0)