From: Marc Branchaud <marcnarc@xiplink.com>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: "Lucas Sandery [three am design]" <lucas@threeamdesign.com.au>,
git@vger.kernel.org, Paul Mackerras <paulus@samba.org>
Subject: Re: gitk next/prev buttons
Date: Tue, 08 Oct 2013 16:45:24 -0400 [thread overview]
Message-ID: <52546EE4.3070307@xiplink.com> (raw)
In-Reply-To: <20131008193618.GE9464@google.com>
On 13-10-08 03:36 PM, Jonathan Nieder wrote:
>
> In a branchy history, it is possible for the next matching commit to
> actually be newer.
Chronologically, yes.
Gitk will often display a history like this (here the numbers represent
commit dates, so 1 is the oldest commit, and I've rotated this 90 degrees
clockwise from how gitk would display it):
--3--4-------5---
/
--------1--2
If commits 2 and 4 match, and the user is looking at commit 2, then the
"next" matching commit from 2 is 4, which is chronologically newer.
However, I still find it more intuitive to think of commit 4 as "older" than
commit 2, at least when using gitk. This is because in gitk the commits are
generally older as you go down the list. (When it comes to branches,
chronology hardly matters anyway. In fact, gitk could ensure that all
commits are displayed in strictly chronological order regardless of branches,
and such a display would be just as correct as what it currently shows
although it'd be less compact.)
A gitk user comes to expect older commits to be lower down in the display.
It's certainly not a hard-and-fast rule, but it's a general paradigm that works.
> I think the intent of the buttons is "find the
> next result, looking down or up in the list of commits in the upper
> pane". Is there some other wording that would convey this better?
The problem is, at least for me, that when I'm using gitk to browse the
history of changes to a file, I'll often want to see things that happened
before or after a certain point. Once I start thinking like that, gitk's
concepts of "next" and "prev" mix me up, because I want to see the next thing
that happened to the file but the "next" button doesn't take me there. The
chronological (dis)ordering that branches introduce doesn't trip me up as
much as the "next" and "prev" buttons.
M.
next prev parent reply other threads:[~2013-10-08 20:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-01 2:31 gitk next/prev buttons Lucas Sandery [three am design]
2013-10-02 1:08 ` Lucas Sandery
2013-10-08 17:50 ` Marc Branchaud
2013-10-08 19:36 ` Jonathan Nieder
2013-10-08 20:45 ` Marc Branchaud [this message]
2013-12-18 16:04 ` [PATCHv2] gitk: Replace "next" and "prev" buttons with down and up arrows Marc Branchaud
2014-01-21 15:33 ` Marc Branchaud
2014-01-22 11:04 ` Paul Mackerras
2014-01-22 20:18 ` Junio C Hamano
2014-01-23 11:08 ` Paul Mackerras
2014-01-23 16:51 ` Junio C Hamano
2013-10-08 20:49 ` [PATCH] gitk: Rename "next" and "prev" buttons to "older" and "newer" Marc Branchaud
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=52546EE4.3070307@xiplink.com \
--to=marcnarc@xiplink.com \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
--cc=lucas@threeamdesign.com.au \
--cc=paulus@samba.org \
/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).