From: Junio C Hamano <gitster@pobox.com>
To: Michael Rappazzo <rappazzo@gmail.com>
Cc: git@vger.kernel.org, j6t@kdbg.org
Subject: Re: [PATCH v3 2/2] gitk: make Tags and Heads window geometry sticky
Date: Sun, 28 Sep 2025 08:57:43 -0700 [thread overview]
Message-ID: <xmqqbjmu7eo8.fsf@gitster.g> (raw)
In-Reply-To: <20250928135435.59623-3-rappazzo@gmail.com> (Michael Rappazzo's message of "Sun, 28 Sep 2025 09:54:35 -0400")
Michael Rappazzo <rappazzo@gmail.com> writes:
> Currently, the Tags and Heads window always opens at a default position
> and size, requiring users to reposition it each time. This patch makes
> the window remember its geometry between sessions.
As the second patch in two-patch series, whose first step is a
revert we just saw, it is unclear what state of the code "Currently"
above refers to. Has it been that way even before the revert (in
other words, even with the ancient Tcl/Tk 8.4.1 workaround), or have
we briefly regressed with the previous step to fix it correctly and
this is the right fix suitable for Tcl/Tk of the modern times?
> This change saves and restores the Tags and Heads window size and position
> relative to the main gitk window. The geometry is stored in the config file
> as `geometry(showrefs)` and persists between gitk sessions. The window
> position is stored relative to the main window, so it maintains the same
> spatial relationship when the main window is moved or when gitk is restarted
> on different monitors.
>
> Signed-off-by: Michael Rappazzo <rappazzo@gmail.com>
> ---
> gitk | 39 +++++++++++++++++++++++++++++++++++++--
> 1 file changed, 37 insertions(+), 2 deletions(-)
Nice. Very well written explanation that tells why this is a good
thing to do to those who do not even use gitk very often.
As a pair of patches to an area with an official submaintainer, I
won't touch them and instead expect them to be fed via a pull
request once the reviews are done on them, but it still is
appreciated to see patches sent here for reviews even when the
submaintainer is part of the team that authored them.
Thanks.
next prev parent reply other threads:[~2025-09-28 15:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-28 13:54 [PATCH v3 0/2] gitk: make Tags and Heads window geometry sticky Michael Rappazzo
2025-09-28 13:54 ` [PATCH v3 1/2] Revert "gitk: Only restore window size from ~/.gitk, not position" Michael Rappazzo
2025-09-28 14:17 ` Mark Levedahl
2025-09-28 15:01 ` Mike Rappazzo
2025-10-17 16:36 ` Johannes Sixt
2025-10-17 19:27 ` Mark Levedahl
2025-09-28 15:49 ` Junio C Hamano
2025-09-28 13:54 ` [PATCH v3 2/2] gitk: make Tags and Heads window geometry sticky Michael Rappazzo
2025-09-28 15:57 ` Junio C Hamano [this message]
2025-10-04 17:36 ` Johannes Sixt
2025-10-04 22:04 ` [PATCH] gitk: persist position and size of the Tags and Heads window Johannes Sixt
2025-10-06 15:29 ` [PATCH v2] " Johannes Sixt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqbjmu7eo8.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
--cc=rappazzo@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).