As part of a research project, I'm trying to replicate a graph representation in version control software such as SourceTree or TortoiseGit.
The graphical representation I'm trying to implement 
The biggest problem I am facing is finding which branch the commit belongs to. If I have this, I can assign a fix point to the column and color. This is complicated because under the hood, Git does not store the branch in which the commit was committed.
Looking at other solutions in StackOverflow, I found that I could get a list of branches containing a commit, but I needed a method for selecting one that would appear on my graph. In the same way, SourceTree or TortoiseGit somehow manages to do this.
My problem is also identical to this. Find out the branch to which the commit in LibGit2Sharp belongs?
Looks like they found the actual solution in a private discussion room. However, I do not have a reputation to comment and ask what they found.
Does anyone have any ideas on how I can do this?
Or, @nulltoken, if by chance you see this and remember, do you know what you guys found in this discussion room?
source share