]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: use $config_variables as list for save/restore
authorMark Levedahl <mlevedahl@gmail.com>
Tue, 3 Jun 2025 20:17:15 +0000 (16:17 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Thu, 17 Jul 2025 03:01:51 +0000 (23:01 -0400)
commit5b8103a0bdd64aa1e093e235966ae76b76b4f81d
treec82b5c7000065a0202fa96969fe4d1a774155fb7
parentb70227fd8681baa21bacf551c5f5e417052b0c54
gitk: use $config_variables as list for save/restore

gitk includes many user defined configuration variables, has all of
these are listed in $config_variables. But this list is not used to
define the variables to be loaded, saved, or restored when cancelling
the configuration dialog, and developers must maintain separate lists of
variables for these purposes. This leads to unnecessary errors and merge
conflicts. Let's replace those separate lists with $config_variables to
make maintenance easier.

While we are on topic, sort the list of names in $config_variables.
This makes it simpler to scan and has fewer chances of conflicts
when new names are introduced.

Helped-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
gitk