git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Gitk : When the number of commits is small, you can roll up excessively
@ 2023-02-14  6:02 L2750558108
  2023-02-26 12:26 ` Philip Oakley
  0 siblings, 1 reply; 4+ messages in thread
From: L2750558108 @ 2023-02-14  6:02 UTC (permalink / raw)
  To: git

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







Reduce :



1.Create a new respository
2.Make 2 Commit
3.Go to Gitk to see them
4.Scroll up in the commit list and you can see the error

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gitk : When the number of commits is small, you can roll up excessively
  2023-02-14  6:02 Gitk : When the number of commits is small, you can roll up excessively L2750558108
@ 2023-02-26 12:26 ` Philip Oakley
       [not found]   ` <CH2PR14MB35637B8C5593D5F17076E7EEB1AF9@CH2PR14MB3563.namprd14.prod.outlook.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Philip Oakley @ 2023-02-26 12:26 UTC (permalink / raw)
  To: L2750558108@outlook.com, git

A bit of a late response..
On 14/02/2023 06:02, L2750558108@outlook.com wrote:
> Gitk : When the number of commits is small, you can roll up excessively
>
> Reduce :
>
> 1.Create a new respository
> 2.Make 2 Commit
> 3.Go to Gitk to see them
> 4.Scroll up in the commit list and you can see the error
I cannot replicate this problem (on Git-for-Windows git version
2.39.2.windows.1).

What OS, Git and gitk versions are you on?

I created the repo with the commands
phili@Philip-Win10 MINGW64 /c/git-sdk-64/usr/src (main)
$ git init gitkfault
$ cd gitkfault/
$ echo test>file;git add file;git commit -mfirst
$ echo test2>file;git add file;git commit -msecond
$ gitk &
[1] 1021

I was visualising the commits (lower gitk window) with the "Diff" and
"Patch" settings.
 
At your step 4, I tried 'scrolling up' both by mouse clicking on the two
commits in the top left window that displays the history, and by using
the left/right arrows displayed just right of the "SHA1 ID" value. No
errors were shown.

(those sha1 arrows are distinct from the 'Find' selection and navigation
capability immediately below the "SHA1 ID" line.

What were the exact errors shown at your step 4?

--
Philip

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gitk : When the number of commits is small, you can roll up excessively
       [not found]   ` <CH2PR14MB35637B8C5593D5F17076E7EEB1AF9@CH2PR14MB3563.namprd14.prod.outlook.com>
@ 2023-02-27 10:00     ` Philip Oakley
  2023-02-28  6:35       ` Johannes Sixt
  0 siblings, 1 reply; 4+ messages in thread
From: Philip Oakley @ 2023-02-27 10:00 UTC (permalink / raw)
  To: L2750558108@outlook.com, git

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.

> but I don't know where to put them
>

The https://groups.google.com/g/git-users does allow (If I remember
correctly) the inclusion of photos. Please do annotate/label the screen
shots. Plain text doesn't always carry the expected nuances...
>  
> ------------------------------------------------------------------------
> L2750558108@outlook.com
>
>      
>     From: Philip Oakley <mailto:philipoakley@iee.email>
>     Date: 2023-02-26 20:26
>     To: L2750558108@outlook.com; git <mailto:git@vger.kernel.org>
>     Subject: Re: Gitk : When the number of commits is small, you can
>     roll up excessively
>     A bit of a late response..
>     On 14/02/2023 06:02, L2750558108@outlook.com wrote:
>     > Gitk : When the number of commits is small, you can roll up
>     excessively
>     >
>     > Reduce :
>     >
>     > 1.Create a new respository
>     > 2.Make 2 Commit
>     > 3.Go to Gitk to see them
>     > 4.Scroll up in the commit list and you can see the error
>     I cannot replicate this problem (on Git-for-Windows git version
>     2.39.2.windows.1).
>
>     What OS, Git and gitk versions are you on?
>
>     I created the repo with the commands
>     phili@Philip-Win10 MINGW64 /c/git-sdk-64/usr/src (main)
>     $ git init gitkfault
>     $ cd gitkfault/
>     $ echo test>file;git add file;git commit -mfirst
>     $ echo test2>file;git add file;git commit -msecond
>     $ gitk &
>     [1] 1021
>
>     I was visualising the commits (lower gitk window) with the "Diff" and
>     "Patch" settings.
>      
>     At your step 4, I tried 'scrolling up' both by mouse clicking on
>     the two
>     commits in the top left window that displays the history, and by
>     using
>     the left/right arrows displayed just right of the "SHA1 ID" value. No
>     errors were shown.
>
>     (those sha1 arrows are distinct from the 'Find' selection and
>     navigation
>     capability immediately below the "SHA1 ID" line.
>
>     What were the exact errors shown at your step 4?
>
>     -- 
>     Philip
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gitk : When the number of commits is small, you can roll up excessively
  2023-02-27 10:00     ` Philip Oakley
@ 2023-02-28  6:35       ` Johannes Sixt
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Sixt @ 2023-02-28  6:35 UTC (permalink / raw)
  To: Philip Oakley; +Cc: L2750558108@outlook.com, git

Am 27.02.23 um 11:00 schrieb Philip Oakley:
> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-28  6:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14  6:02 Gitk : When the number of commits is small, you can roll up excessively L2750558108
2023-02-26 12:26 ` Philip Oakley
     [not found]   ` <CH2PR14MB35637B8C5593D5F17076E7EEB1AF9@CH2PR14MB3563.namprd14.prod.outlook.com>
2023-02-27 10:00     ` Philip Oakley
2023-02-28  6:35       ` Johannes Sixt

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).