]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: persist position and size of the Tags and Heads window
authorJohannes Sixt <j6t@kdbg.org>
Fri, 17 Oct 2025 16:38:11 +0000 (18:38 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Fri, 17 Oct 2025 16:38:11 +0000 (18:38 +0200)
commitbf5a55ac5eaef91e87470d704613e6942500a810
treefb5b203ee09d1f78d8a4455a5caffdc4980b942c
parent8b5636a57ff078ac368f246f813b156552a0726c
gitk: persist position and size of the Tags and Heads window

The Tags and Heads window always opens at a default position and size,
requiring users to reposition it each time. Remember its geometry
between sessions in the config file as `geometry(showrefs)`.

Note that the existing configuration is sourced in proc savestuff
right before new settings are written. This makes the old settings
available as local variables(!) and does not overwrite the current
settings. Since we need access to the global geometry(showrefs), it
is necessary to unset the local variable.

Helped-by: Michael Rappazzo <rappazzo@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
gitk