# `git log --graph` with multiple roots is confusing

5 messages from 2014-06-30 to 2014-07-09. Participants: Gary Fixler, John Keeping, Jeff King, Duy Nguyen.
Thread: https://gitlist.dev/t/37026

## Gary Fixler, 2014-06-30 06:40

Subject: `git log --graph` with multiple roots is confusing
Message-ID: <CALygMcDXjMUcq=8ERVTES+5qNjLMe_OFPbmeqAosU7qmk=QuUQ@mail.gmail.com>
URL: https://gitlist.dev/e/CALygMcDXjMUcq%3D8ERVTES%2B5qNjLMe_OFPbmeqAosU7qmk%3DQuUQ%40mail.gmail.com

```
I sometimes pull things in from unrelated repositories to rebase or
cherry-pick items from a different line of development. I've done this
to bring isolated features into a project in their own feature
branches with their full development histories, and also to extract
lines of development out to their own project, with their histories
intact. These are usually not connected commits, but things I have to
track down across time with `git log -S` and friends.

When I `git remote add otherrepo <url>`, then view things with my
aliased `git log --oneline --all --graph --decorate` alias, I'm
usually immediately straining to figure out what's what, as the two
trees stack onto each other with no separation. It would be nice if
root commits used something other than *, and/or if they could be
colored differently by default, or via some option to make them stand
out as parent-less commits.

Is this feasible, or already possible?

```

## John Keeping, 2014-06-30 08:08

Subject: Re: `git log --graph` with multiple roots is confusing
Message-ID: <20140630080829.GB13153@serenity.lan>
URL: https://gitlist.dev/e/20140630080829.GB13153%40serenity.lan
In-Reply-To: <CALygMcDXjMUcq=8ERVTES+5qNjLMe_OFPbmeqAosU7qmk=QuUQ@mail.gmail.com>

```
On Sun, Jun 29, 2014 at 11:40:40PM -0700, Gary Fixler wrote:
> I sometimes pull things in from unrelated repositories to rebase or
> cherry-pick items from a different line of development. I've done this
> to bring isolated features into a project in their own feature
> branches with their full development histories, and also to extract
> lines of development out to their own project, with their histories
> intact. These are usually not connected commits, but things I have to
> track down across time with `git log -S` and friends.
> 
> When I `git remote add otherrepo <url>`, then view things with my
> aliased `git log --oneline --all --graph --decorate` alias, I'm
> usually immediately straining to figure out what's what, as the two
> trees stack onto each other with no separation. It would be nice if
> root commits used something other than *, and/or if they could be
> colored differently by default, or via some option to make them stand
> out as parent-less commits.
> 
> Is this feasible, or already possible?

Have you tried `git log --boundary`?

```

## Gary Fixler, 2014-06-30 10:04

Subject: Re: `git log --graph` with multiple roots is confusing
Message-ID: <CALygMcDr2N2oyLOkVzE3XqAXu8DMSe_LhHXdL0QwN8W3JaV9zg@mail.gmail.com>
URL: https://gitlist.dev/e/CALygMcDr2N2oyLOkVzE3XqAXu8DMSe_LhHXdL0QwN8W3JaV9zg%40mail.gmail.com
In-Reply-To: <20140630080829.GB13153@serenity.lan>

```
I just made a new test repo, added and fetched two unrelated repos,
and then did the log view (all/graph/decorate/oneline), and tacked on
--boundary, but saw no change. The root commits looked the same.

-g


On Mon, Jun 30, 2014 at 1:08 AM, John Keeping <john@keeping.me.uk> wrote:
> On Sun, Jun 29, 2014 at 11:40:40PM -0700, Gary Fixler wrote:
>> I sometimes pull things in from unrelated repositories to rebase or
>> cherry-pick items from a different line of development. I've done this
>> to bring isolated features into a project in their own feature
>> branches with their full development histories, and also to extract
>> lines of development out to their own project, with their histories
>> intact. These are usually not connected commits, but things I have to
>> track down across time with `git log -S` and friends.
>>
>> When I `git remote add otherrepo <url>`, then view things with my
>> aliased `git log --oneline --all --graph --decorate` alias, I'm
>> usually immediately straining to figure out what's what, as the two
>> trees stack onto each other with no separation. It would be nice if
>> root commits used something other than *, and/or if they could be
>> colored differently by default, or via some option to make them stand
>> out as parent-less commits.
>>
>> Is this feasible, or already possible?
>
> Have you tried `git log --boundary`?

```

## Jeff King, 2014-07-09 06:51

Subject: Re: `git log --graph` with multiple roots is confusing
Message-ID: <20140709065145.GB14682@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20140709065145.GB14682%40sigill.intra.peff.net
In-Reply-To: <CALygMcDr2N2oyLOkVzE3XqAXu8DMSe_LhHXdL0QwN8W3JaV9zg@mail.gmail.com>

```
On Mon, Jun 30, 2014 at 03:04:19AM -0700, Gary Fixler wrote:

> I just made a new test repo, added and fetched two unrelated repos,
> and then did the log view (all/graph/decorate/oneline), and tacked on
> --boundary, but saw no change. The root commits looked the same.

There was some discussion a while back on making root commits more
apparent in the graph view:

  http://article.gmane.org/gmane.comp.version-control.git/239580

That topic has stalled, but perhaps you can help push it forward.

-Peff

```

## Duy Nguyen, 2014-07-09 07:16

Subject: Re: `git log --graph` with multiple roots is confusing
Message-ID: <CACsJy8D4NeDjwkTw=Mpy16vjRhLzPXU55yhG_z+oQwC-82FF4A@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8D4NeDjwkTw%3DMpy16vjRhLzPXU55yhG_z%2BoQwC-82FF4A%40mail.gmail.com
In-Reply-To: <20140709065145.GB14682@sigill.intra.peff.net>

```
On Wed, Jul 9, 2014 at 1:51 PM, Jeff King <peff@peff.net> wrote:
> On Mon, Jun 30, 2014 at 03:04:19AM -0700, Gary Fixler wrote:
>
>> I just made a new test repo, added and fetched two unrelated repos,
>> and then did the log view (all/graph/decorate/oneline), and tacked on
>> --boundary, but saw no change. The root commits looked the same.
>
> There was some discussion a while back on making root commits more
> apparent in the graph view:
>
>   http://article.gmane.org/gmane.comp.version-control.git/239580
>
> That topic has stalled, but perhaps you can help push it forward.

Grafted commits are marked --decorate, so perhaps another (simpler)
route to make root commits stand out is decorate them.
-- 
Duy

```
