From: Adam Simpkins <adam@adamsimpkins.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: [PATCH] log --graph: draw '>' and '<' with --left-right
Date: Sat, 24 May 2008 23:43:25 -0700 [thread overview]
Message-ID: <20080525064324.GA16827@adamsimpkins.net> (raw)
In-Reply-To: <7v63t3j6mn.fsf@gitster.siamese.dyndns.org>
On Sat, May 24, 2008 at 10:27:12PM -0700, Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> > When calling "git log --left-right <branch1>...<branch2>", a single "<" or
> > ">" is shown in front of the commit line, to indicate which branch1 this
> > commit comes from, branch1 or branch2.
> >
> > However, it is easy to miss in the output of "git log --graph ...", since
> > the graph still has "*" for regular commits and "M" for merge commits. So
> > imitate gitk, and show the "<" and ">" characters in the graph, too,
> > instead of "*" (or "M").
>
> This certainly makes it more visible which one is left and which one is
> right:
>
> ...
>
> But is it just me who now finds the original marker redundant and ugly?
> IOW, I wonder if it is better to show this:
>
> < commit 205ffa9...
> | Author: Gustaf Hendeby <hendeby@isy.liu.se>
> |
> | Make git add -n and git -u -n output consistent
> |
> < commit 38ed1d8...
> | Author: Junio C Hamano <gitster@pobox.com>
> |
> | "git-add -n -u" should not add but just report
> ...
>
> This is with --pretty=short, --pretty=oneline makes the issue even more
> obvious.
Yes, I agree that the original marker is now redundant, and it looks
better without it.
My recent patch to fix the "log --graph --boundary" behavior also
changes the graph code to print boundary commits as 'o' instead of
'*'. We could probably also remove the original '-' prefix for
boundary commits when the graph output is enabled.
I was looking at the code, and noticed that it also outputs a '^'
prefix for non-boundary commits that are marked UNINTERESTING. In
what situations will get_revision() return a commit that is
UNINTERESTING but not BOUNDARY? I'm asking since the graph code
currently treats these commits as uninteresting, and won't print
branch lines for them. If there are situations where these commits
are included in the log output, the graph code probably needs to be
updated to handle it.
--
Adam Simpkins
adam@adamsimpkins.net
next prev parent reply other threads:[~2008-05-25 6:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 11:36 [PATCH] log --graph: draw '>' and '<' with --left-right Johannes Schindelin
2008-05-22 12:47 ` Johannes Schindelin
2008-05-22 13:14 ` Sverre Rabbelier
2008-05-25 5:27 ` Junio C Hamano
2008-05-25 6:43 ` Adam Simpkins [this message]
2008-05-25 7:07 ` [PATCH] log and rev-list: don't print extra prefixes already shown in the graph Adam Simpkins
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=20080525064324.GA16827@adamsimpkins.net \
--to=adam@adamsimpkins.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).