threads / discuss / 14417

Git call graph

Subject: Git call graph

## tl;dr

2 messages between Jul 12, 2008 and Jul 12, 2008.

replies: 1people: 1as markdown or json

Miklos Vajna· Jul 12, 2008, 00:47 UTC · lore
Hi,

I just did this for fun, if you are busy, you can stop reading now, this mail is not about anything important. :-)

I thought it would worth a try to make a graph about git calls, when a script calls an other git program. I tracked two types of calls:

- when a bultin calls an other builtin (like git reset calls
  git read-tree)
- when a script calls a builtin (like git merge-resolve calls
  git write-tree)
Here is the result:
http://vmiklos.hu/pic/git-call-graph.png

The code that was used to generate the graph is available at the 'graph' branch of git://repo.or.cz/git/vmiklos.git.

If you check out that branch, you can simply type 'make' to generate the picture, or you can read some minimal documentation (README).

And now I should stop playing with it, in fact it took much more time than I expected. ;-)

Miklos Vajna· Jul 12, 2008, 01:27 UTC · lore

Re: Git call graph

On Fri, Jul 11, 2008 at 05:58:46PM -0700, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
> > Here is the result:
> >
> > http://vmiklos.hu/pic/git-call-graph.png
> 
> Your pull does not seem to call either fetch nor merge...  Strange.

My bad. I tracked shell calls using a wrapper around 'git' so it missed calls without the 'remove-dashes' patches I posted yesterday.

http://vmiklos.hu/pic/git-call-graph-v2.png
This one now shows that.

← back to recent threads