git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Gitk : When the number of commits is small, you can roll up excessively

From
Johannes Sixt <j6t@kdbg.org>
Date
Feb 28, 2023, 06:35 UTC
Message-ID
<75afffcd-65f8-e8e2-1cd9-51806194e4b3@kdbg.org>
In-Reply-To
<15d5c6c5-091a-63b1-979a-5aaa64c9e717@iee.email>
Am 27.02.23 um 11:00 schrieb Philip Oakley:
Show 11 quoted lines
> On 27/02/2023 05:01, L2750558108@outlook.com wrote:
>> You can scroll up via the scroll wheel or the right column button and
>> see the white space in front of the first row, and in this case, the
>> collision box for each row is misaligned, which prevents me from
>> selecting the commit by clicking. If you stll not understand, I can
>> send a picture or video to show the situation I am experiencing,
> 
> I see the space above (which I guess is for 'uncommitted changes',
> should they exist) and a small space below when scrolling.
> I'm unsure what the 'collision box' refers to as I don't see any
> 'misalignment'. But I maybe just too familiar with gitk's quirks.

The issue is this: When there is vertical space for a list of, say, 10 commits, but there are only 3 commits, then you can scroll the display such that the 3 commit lines are at the bottom of the list and there is blank space above the lines. Now, when you click on one of the lines, nothing happens; but when you click into the void near the top, one of the lines is selected as if the lines were displayed at the top. Clearly, the click hitbox for the lines is not aligned with how the lines are displayed.

IMHO, this is a case of "if it hurts, don't do it".
-- Hannes
Previous: Philip Oakley
Message 4 of 4 in “Gitk : When the number of commits is small, you can roll up excessively”
  1. L2750558108@outlook.comFeb 14, 2023
  2. Philip OakleyFeb 26, 2023
  3. Philip OakleyFeb 27, 2023
  4. Johannes SixtFeb 28, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.