Patrick Steinhardt
040b141df3
builtin/config: convert key to a local variable
...
The `key` variable is used by the `get_value()` function for two
purposes:
- It is used to store the result of `git_config_parse_key()`, which is
then passed on to `collect_config()`.
- It is used as a store to convert the provided key to an
all-lowercase key when `use_key_regexp` is set.
Neither of these cases warrant a global variable at all. In the former
case we can pass the key via `struct collect_config_data`. And in the
latter case we really only want to have it as a temporary local variable
such that we can free associated memory.
Refactor the code accordingly to reduce our reliance on global state.
Signed-off-by: Patrick Steinhardt <ps@pks.im >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2024-05-15 07:17:56 -07:00
..
2024-05-08 10:18:44 -07:00
2024-04-18 12:30:42 -07:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:33 -08:00
2024-02-08 16:22:10 -08:00
2024-04-05 15:21:14 -07:00
2024-04-05 10:49:49 -07:00
2024-03-16 09:31:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-02-13 10:18:50 -08:00
2024-02-08 13:20:34 -08:00
2023-12-26 12:04:31 -08:00
2024-04-18 12:30:42 -07:00
2024-05-15 07:17:56 -07:00
2024-05-08 10:18:44 -07:00
2024-05-08 10:18:44 -07:00
2024-04-16 22:39:06 -07:00
2024-04-16 22:39:08 -07:00
2024-04-18 12:30:42 -07:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-02-12 09:32:41 -08:00
2024-04-15 10:06:18 -07:00
2024-04-15 14:11:43 -07:00
2024-02-23 10:36:28 -08:00
2024-04-24 10:46:03 -07:00
2024-02-21 09:58:06 -08:00
2023-12-26 12:04:33 -08:00
2024-04-30 14:49:45 -07:00
2023-12-26 12:04:31 -08:00
2024-03-28 14:13:50 -07:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-03-02 11:12:16 -08:00
2024-01-16 10:11:57 -08:00
2024-03-25 16:16:34 -07:00
2024-04-30 14:49:43 -07:00
2024-03-25 11:59:24 -07:00
2024-01-08 14:05:15 -08:00
2024-04-03 10:56:20 -07:00
2023-12-26 12:04:31 -08:00
2024-02-29 08:06:01 -08:00
2023-11-22 14:23:06 +09:00
2024-04-18 12:30:42 -07:00
2023-12-26 12:04:31 -08:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2023-12-26 12:04:33 -08:00
2024-04-17 12:35:41 -07:00
2024-04-18 12:30:42 -07:00
2024-02-26 09:35:40 -08:00
2024-03-12 13:28:10 -07:00
2024-03-28 14:13:50 -07:00
2024-03-25 09:54:07 -07:00
2024-04-18 12:30:42 -07:00
2024-02-08 16:22:10 -08:00
2023-12-26 12:04:31 -08:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-23 15:05:56 -07:00
2024-03-01 14:38:55 -08:00
2024-03-05 14:11:56 -08:00
2024-03-02 11:12:16 -08:00
2024-04-18 12:30:42 -07:00
2023-12-26 12:04:31 -08:00
2024-04-18 12:30:42 -07:00
2024-04-01 13:21:34 -07:00
2024-04-18 12:30:42 -07:00
2024-03-25 16:45:41 -07:00
2024-04-18 12:30:42 -07:00
2024-02-08 16:22:10 -08:00
2024-03-19 17:54:15 -07:00
2024-02-13 14:44:47 -08:00
2024-02-08 16:22:10 -08:00
2024-05-08 10:18:44 -07:00
2024-03-12 13:28:10 -07:00
2024-04-18 12:30:42 -07:00
2024-04-05 10:49:49 -07:00
2024-03-02 11:12:16 -08:00
2024-04-18 12:30:42 -07:00
2024-04-02 10:20:28 -07:00
2024-02-28 14:42:01 -08:00
2024-01-18 12:17:41 -08:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-04-05 10:49:49 -07:00
2024-04-18 12:30:42 -07:00