diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-05-15 08:42:53 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-05-15 07:17:55 -0700 |
| commit | fdfaaa1b68f61eccd7423da558e9c69e3c7bb908 (patch) | |
| tree | 599433fd97ddbcdc26a5398d4acaea1bfeb14184 /builtin/commit.c | |
| parent | builtin/config: convert `regexp` to a local variable (diff) | |
| download | git-fdfaaa1b68f61eccd7423da558e9c69e3c7bb908.tar.gz git-fdfaaa1b68f61eccd7423da558e9c69e3c7bb908.zip | |
builtin/config: convert `key_regexp` to a local variable
The `key_regexp` variable is used by the `format_config()` callback when
`use_key_regexp` is set. It is only ever set up by its only caller,
`collect_config()` and can thus easily be moved into the
`collect_config_data` structure.
Do so to remove our reliance on global state.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
