threads / discuss / 3063

[wish] Auto-generate gitk's pretty pictures

Subject: [wish] Auto-generate gitk's pretty pictures

## tl;dr

9 messages between Jan 12, 2006 and Jan 14, 2006.

replies: 8people: 5as markdown or json

Martin Langhoff· Jan 12, 2006, 21:02 UTC · lore

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· Jan 13, 2006, 22:14 UTC · re: Martin Langhoff · lore

Re: [wish] Auto-generate gitk's pretty pictures

Show 6 quoted lines
> 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.

Junio C Hamano· Jan 13, 2006, 22:21 UTC · re: Artem Khodush · lore

Re: [wish] Auto-generate gitk's pretty pictures

Artem Khodush <greenkaa@gmail.com> writes:
Show 6 quoted lines
> 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· Jan 13, 2006, 22:30 UTC · re: Junio C Hamano · lore

Re: [wish] Auto-generate gitk's pretty pictures

On 1/14/06, Junio C Hamano <junkio@cox.net> wrote:
Show 10 quoted lines
> 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· Jan 13, 2006, 22:44 UTC · re: Artem Khodush · lore

Re: [wish] Auto-generate gitk's pretty pictures

On 1/14/06, Artem Khodush <greenkaa@gmail.com> wrote:
Show 6 quoted lines
> 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· Jan 14, 2006, 03:05 UTC · re: Martin Langhoff · lore

Re: [wish] Auto-generate gitk's pretty pictures

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· Jan 14, 2006, 13:36 UTC · re: Artem Khodush · lore

Re: [wish] Auto-generate gitk's pretty pictures

Artem Khodush wrote:
Show 11 quoted lines
> 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· Jan 14, 2006, 16:26 UTC · re: Andreas Ericsson · lore

Re: [wish] Auto-generate gitk's pretty pictures

On 1/14/06, Andreas Ericsson <ae@op5.se> wrote:
Show 7 quoted lines
> 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.

← back to recent threads