From: Yuri D'Elia <wavexx@thregr.org>
To: git@vger.kernel.org
Subject: Re: A better git log --graph?
Date: Thu, 08 Jan 2015 12:39:35 +0100 [thread overview]
Message-ID: <54AE6C77.8060303@thregr.org> (raw)
In-Reply-To: <95FA7666-4031-48FE-B9F7-DC8BB969426C@gmail.com>
On 01/08/2015 08:52 AM, Kyle J. McKay wrote:
> Since --graph is text-based, this response may not be on-topic hence
> no cc: to the list.
I see --graph as an important tool to get an overview on how the
development is being done. I don't mind having a graphical tool for the
job, and I was even suggesting if there was a graphviz-based tool that
could do a better job.
I have a couple of projects where we made heavy use of topic branches,
cherrypicks and whatnot. Not the best way to work, but I realized I just
needed a graphical overview of the layout to streamline a bit the
development.
I normally use tig, but the drawn graph, even when turning on bar
drawing, is really poor.
> I assume that you've tried gitk? It has a graphic viewer for the log,
> but I also find it difficult to tell what's going on in its graph
> although it's somewhat better than the --graph graph. It does not
> parse --graph output.
I usually never use frontends. The notable exception is "tig" when I
want to get a feeling of the status of several branches and/or "blame"
some files. It haves a lot of typing. That being said, I tried gitk, but
assumed it was also parsing --graph layout.
Now looking again, I notice some differencies, but it doesn't give me a
better picture.
> A better repository to view it on is the scons mirror (http://repo.or.cz/scons
> ) as it doesn't have nearly the number of branches/merges as Git
> (direct link is <http://repo.or.cz/git-browser/by-commit.html?r=scons.git
> >).
It's better, but still not something I would feel like using.
Github's network "graph" is a bit better in my mind, but it also has his
own share of problems, namely trying his own logic to reduce the height
of the graph recyling the row for multiple branches.
> However, I find its graphs much easier to grok as it draws --first-
> parent links in a much thicker line style and they stay the same color
> so it's very easy to see forks, merges and where a fork was re-merged
> into a main branch.
Yes, this does make a lot of difference when just looking at it. It
immediately becomes much more apparent.
I'm wondering if just turning on the bold attribute in --graph --color
would help improve the output.
> P.S. I'm not 100%, but I think that fossil shows the kinds of graphs
> you're looking for (see a sample at <http://sqlite.org/src/timeline?y=ci&n=200
> >) -- each branch head stays in the same column and non-first-parent
> links are thinner lines.
Now that's *really* readable for me! Isn't it?
I never used fossil so this is the first time I see it.
The symbols are really well chosen as well.
Can we have something like this in git?
It might entirely be that it breaks for 200 branches, but hell, for
smaller projects it's a boon.
> P.P.S. In any case if this isn't too much off-topic for your original
> message, feel free to include any parts of the above message in a
> reply to the list.
It was very helpful, so it's done.
next prev parent reply other threads:[~2015-01-08 11:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 14:23 A better git log --graph? Yuri D'Elia
2015-01-07 15:47 ` Johan Herland
2015-01-07 16:33 ` Yuri D'Elia
2015-01-07 16:35 ` Junio C Hamano
[not found] ` <95FA7666-4031-48FE-B9F7-DC8BB969426C@gmail.com>
2015-01-08 11:39 ` Yuri D'Elia [this message]
2015-01-08 11:59 ` John Szakmeister
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=54AE6C77.8060303@thregr.org \
--to=wavexx@thregr.org \
--cc=git@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.