# [wish] Auto-generate gitk's pretty pictures

9 messages from 2006-01-12 to 2006-01-14. Participants: Martin Langhoff, Artem Khodush, Johannes Schindelin, Junio C Hamano, Andreas Ericsson.
Thread: https://gitlist.dev/t/3063

## Martin Langhoff, 2006-01-12 21:02

Subject: [wish] Auto-generate gitk's pretty pictures
Message-ID: <46a038f90601121302x3d06898dk3f9a0ab7114ef70a@mail.gmail.com>
URL: https://gitlist.dev/e/46a038f90601121302x3d06898dk3f9a0ab7114ef70a%40mail.gmail.com

```
Being an ignorant in matters Tk, I am wondering whether it'd be
possible to hack gitk so that it renders the top canvas into a file.
gitweb doesn't give people any hints of how the heads are related, so
I am working on the idea of running an hourly cron on the server that
does

 gitk -d --all --max-count=1000 --prettypic=foo.png

and link to the png from gitweb. Is it easier to trick gitk to do it,
or should I be thinking of porting the logic to some other script?
(Possibly in Perl using GD).

cheers,


martin

```

## Artem Khodush, 2006-01-13 22:14

Subject: Re: [wish] Auto-generate gitk's pretty pictures
Message-ID: <40b2b7d90601131414o20eae573r23256ff2dfbeffa5@mail.gmail.com>
URL: https://gitlist.dev/e/40b2b7d90601131414o20eae573r23256ff2dfbeffa5%40mail.gmail.com
In-Reply-To: <46a038f90601121302x3d06898dk3f9a0ab7114ef70a@mail.gmail.com>

```
> I am working on the idea of running an hourly cron on the server that
> does
>
>  gitk -d --all --max-count=1000 --prettypic=foo.png
>
> and link to the png from gitweb.


I'm working on a web interface that will look similar to gitk.
It's far from being usable, the only thing it does now is to "draw"
gitk-like "picture". But if the picture is all you want, you may
find it useful. Please look at

http://straytree.com/git-browser/by-commit.html?r=git

hope this helps,
Artem.

```

## Johannes Schindelin, 2006-01-13 22:19

Subject: Re: [wish] Auto-generate gitk's pretty pictures
Message-ID: <Pine.LNX.4.63.0601132318170.7025@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0601132318170.7025%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <40b2b7d90601131414o20eae573r23256ff2dfbeffa5@mail.gmail.com>

```
Hi,

On Sat, 14 Jan 2006, Artem Khodush wrote:

> http://straytree.com/git-browser/by-commit.html?r=git

Wow! Great work...

Ciao,
Dscho

```

## Junio C Hamano, 2006-01-13 22:21

Subject: Re: [wish] Auto-generate gitk's pretty pictures
Message-ID: <7v1wzb3h2h.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v1wzb3h2h.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <40b2b7d90601131414o20eae573r23256ff2dfbeffa5@mail.gmail.com>

```
Artem Khodush <greenkaa@gmail.com> writes:

> I'm working on a web interface that will look similar to gitk.
> It's far from being usable, the only thing it does now is to "draw"
> gitk-like "picture". But if the picture is all you want, you may
> find it useful. Please look at
>
> http://straytree.com/git-browser/by-commit.html?r=git

Looks nice, although octopi look very ugly ;-).

```

## Artem Khodush, 2006-01-13 22:30

Subject: Re: [wish] Auto-generate gitk's pretty pictures
Message-ID: <40b2b7d90601131430u6ec32db9hd3043e5c35a0c653@mail.gmail.com>
URL: https://gitlist.dev/e/40b2b7d90601131430u6ec32db9hd3043e5c35a0c653%40mail.gmail.com
In-Reply-To: <7v1wzb3h2h.fsf@assigned-by-dhcp.cox.net>

```
On 1/14/06, Junio C Hamano <junkio@cox.net> wrote:
> Artem Khodush <greenkaa@gmail.com> writes:
>
> > I'm working on a web interface that will look similar to gitk.
> > It's far from being usable, the only thing it does now is to "draw"
> > gitk-like "picture". But if the picture is all you want, you may
> > find it useful. Please look at
> >
> > http://straytree.com/git-browser/by-commit.html?r=git
>
> Looks nice, although octopi look very ugly ;-).

Thank you all, any suggestions are welcome :-)

cheers,
Artem

```

## Martin Langhoff, 2006-01-13 22:44

Subject: Re: [wish] Auto-generate gitk's pretty pictures
Message-ID: <46a038f90601131444m32a1a8b8w7ab16617f15ab93b@mail.gmail.com>
URL: https://gitlist.dev/e/46a038f90601131444m32a1a8b8w7ab16617f15ab93b%40mail.gmail.com
In-Reply-To: <40b2b7d90601131414o20eae573r23256ff2dfbeffa5@mail.gmail.com>

```
On 1/14/06, Artem Khodush <greenkaa@gmail.com> wrote:
> I'm working on a web interface that will look similar to gitk.
> It's far from being usable, the only thing it does now is to "draw"
> gitk-like "picture". But if the picture is all you want, you may
> find it useful. Please look at
>
> http://straytree.com/git-browser/by-commit.html?r=git

That looks *great* -- How hard would it be to run it alongside gitweb,
with links back to gitweb for showing commits? And... what is it
written in?



martin

```

## Artem Khodush, 2006-01-14 03:05

Subject: Re: [wish] Auto-generate gitk's pretty pictures
Message-ID: <40b2b7d90601131905s6bb9954fk8e359e3f066ce0c2@mail.gmail.com>
URL: https://gitlist.dev/e/40b2b7d90601131905s6bb9954fk8e359e3f066ce0c2%40mail.gmail.com
In-Reply-To: <46a038f90601131444m32a1a8b8w7ab16617f15ab93b@mail.gmail.com>

```
On 1/14/06, Martin Langhoff <martin.langhoff@gmail.com> wrote:
>
> That looks *great* -- How hard would it be to run it alongside gitweb,
> with links back to gitweb for showing commits? And... what is it
> written in?

It's written mainly in HTML+javascript, so linking to and from it should
be simple - just add an <a> tag. But, the next feature I plan to add
is to show commits in the same window in a way like gitk does.

Artem

```

## Andreas Ericsson, 2006-01-14 13:36

Subject: Re: [wish] Auto-generate gitk's pretty pictures
Message-ID: <43C8FE6F.4050206@op5.se>
URL: https://gitlist.dev/e/43C8FE6F.4050206%40op5.se
In-Reply-To: <40b2b7d90601131905s6bb9954fk8e359e3f066ce0c2@mail.gmail.com>

```
Artem Khodush wrote:
> On 1/14/06, Martin Langhoff <martin.langhoff@gmail.com> wrote:
> 
>>That looks *great* -- How hard would it be to run it alongside gitweb,
>>with links back to gitweb for showing commits? And... what is it
>>written in?
> 
> 
> It's written mainly in HTML+javascript, so linking to and from it should
> be simple - just add an <a> tag. But, the next feature I plan to add
> is to show commits in the same window in a way like gitk does.
> 

Why not just have a separate frame for the commits and load gitweb.cgi 
there?

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

```

## Artem Khodush, 2006-01-14 16:26

Subject: Re: [wish] Auto-generate gitk's pretty pictures
Message-ID: <40b2b7d90601140826k7c30ce7bk3a259061cb333133@mail.gmail.com>
URL: https://gitlist.dev/e/40b2b7d90601140826k7c30ce7bk3a259061cb333133%40mail.gmail.com
In-Reply-To: <43C8FE6F.4050206@op5.se>

```
On 1/14/06, Andreas Ericsson <ae@op5.se> wrote:
> Artem Khodush wrote:
> But, the next feature I plan to add
> > is to show commits in the same window in a way like gitk does.
> >
>
> Why not just have a separate frame for the commits and load gitweb.cgi
> there?

Mainly because gitweb can't show the commit in most
convenient (IMHO) way, with everything on one screen.
I like the way gitk does it, when you can see all at once -
list of changed files in the lower right pane and commit message
with links to parent and child commits and diff in the left.

And with gitweb, those links to related commits must allow somehow
to highlight those commits on the diagram, wich means that gitweb
must be made aware of the frame that it's embedded in, and must
be able to call some javascript there. Eventually I will add interaction
with gitweb in some way or another, but for now, it's easier for me
to just show the commit.

```
