# Git call graph

2 messages from 2008-07-12 to 2008-07-12. Participants: Miklos Vajna.
Thread: https://gitlist.dev/t/14417

## Miklos Vajna, 2008-07-12 00:47

Subject: Git call graph
Message-ID: <20080712004714.GL10347@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080712004714.GL10347%40genesis.frugalware.org

```
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, 2008-07-12 01:27

Subject: Re: Git call graph
Message-ID: <20080712012727.GP10347@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080712012727.GP10347%40genesis.frugalware.org
In-Reply-To: <7vd4ljj4u1.fsf@gitster.siamese.dyndns.org>

```
On Fri, Jul 11, 2008 at 05:58:46PM -0700, Junio C Hamano <gitster@pobox.com> wrote:
> > 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.

```
