threads / discuss / 28461

--simplify-by-decoration, but include branch points

Subject: --simplify-by-decoration, but include branch points

## tl;dr

One message between Sep 22, 2011 and Sep 22, 2011.

replies: 0people: 1as markdown or json

Andrew Pimlott· Sep 22, 2011, 18:24 UTC · lore

The --simplify-by-decoration option to git log is a great way to view branch topology. However, it is a bit misleading because it does not necessarily show branch points. For example, I have a repository that looks like:

    * 6045d25 (HEAD, master) 3
    | * 8daa592 (branch) 2.1
    |/
    * a4da73a 2
    * 014106d (tag: v1) 1

This is from "git log --decorate --all --graph --oneline". If I add --simplify-by-decoration, I get

    * 6045d25 (HEAD, master) 3
    | * 8daa592 (branch) 2.1
    |/
    * 014106d (tag: v1) 1

Note it appears as though the branch point is 014106d, when it's really 014106d. I would love to see an option like --simplify-by-decoration that also selects branch points for display, maybe --simplify-by-branch-point. (It should be possible to combine it with --simplify-by-decoration.)

Is there anything like this?
Andrew

← back to recent threads