Hi Artem,

Branches are ephemeral (temporary), so in general it's not possible, which is part of the Git design.


Also why must is be using just the 'git log' command, rethar than a bit of scripting (The Linux way (TM))?

If you have a well defined branch and merge policy that prevents criss cross merges, or feature on feature development, along with recording branch names in the merge message in a standard format, then you have a chance.

The thing to look for is the --merge-base option(s), however beware of the reflog issue (see https://public-inbox.org/git/xmqq375okvxy....@gitster.mtv.corp.google.com/) as the reflog may suggest an alternate merge-base.

So why 'git log' alone?, and do you have a tight process?

Philip

----- Original Message ----- From: "Artem" <artem...@gmail.com>
To: "Git for human beings" <git-users@googlegroups.com>
Sent: Friday, November 24, 2017 7:07 PM
Subject: [git-users] How to parse commit graph from git log output?


Hello!

I want to retrieve commit graph of some repo using only git log output (git log --parents --all --source). In general, I want to know when a particular
branch was created and merged into the master (or another branch). Where
can I find information on how to do this correctly?

--
You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to