Skip to contentSkip to conversation

cgit for kernel.org

DISCUSSION Lars Hjemli 1 participant 1 message Dec 4, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · Jan Engelhardt

Repository overview.
CGIT: http://cgit.freedesktop.org/
GITWEB: http://git.kernel.org/

Why not compare more equal pages? freedesktop.org also runs gitweb:
http://gitweb.freedesktop.org

Quoted 4 lines

Remarks:
cgit is lacking the links "shortlog", "log", "tree" and "git" which gitweb prints for each repository line.

Adding "enable-index-links=1" to /etc/cgitrc will print links to "summary", "log" and "tree" for each repository line, but you still have to open the summary page to get the git (clone) link. It wouldn't be very hard to add another link (see http://hjemli.net/git/cgit/tree/ui-repolist.c#n96), but I'm not sure what actual value such a link would provide.

Quoted 3 lines

Inside a repository.
CGIT: http://cgit.freedesktop.org/hal/

The similar page in gitweb:
http://gitweb.freedesktop.org/?p=hal.git;a=summary

Quoted 2 lines

GITWEB:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=summary

The similar page in cgit:
http://hjemli.net/git/linux/

Quoted 2 lines

Remarks:
In cgit, the left gray panel went by quite unnoticed

IMHO the sidebar makes cgit way easier to navigate (especially the dropdown box to switch between branches is pretty handy).

Quoted 4 lines

Clicking on a commit.
CGIT:
http://cgit.freedesktop.org/hal/commit/?id=b8f72cec53415ebc2d32805b049dcc94cef4a854

Similar page in gitweb:
http://gitweb.freedesktop.org/?p=hal.git;a=commit;h=b8f72cec53415ebc2d32805b049dcc94cef4a854

Quoted 2 lines

GITWEB:
http://git.kernel.org/?p=linux/kernel/git/jgarzik/misc-2.6.git;a=commit;h=8c27eba54970c6ebbb408186e5baa2274435e869

Similar page in cgit:
http://hjemli.net/git/linux/commit/?id=8c27eba54970c6ebbb408186e5baa2274435e869

Quoted 4 lines

Remarks:
cgit comes with a diffstat. Not that I look at diffstats all that often anyway. Still need to click on "(diff)" go get a diff.

There's always the link in the sidebar ;-)

But seriously, showing the diff on the same page as the commit message would sometimes be nice and sometimes it would be a bit too much:
http://hjemli.net/git/linux/commit/?id=b5faa4b89e4d83203b1f44f143a351b518f7cda2
http://git.kernel.org/?p=linux/kernel/git/jgarzik/misc-2.6.git;a=commit;h=b5faa4b89e4d83203b1f44f143a351b518f7cda2

Quoted 3 lines

Filenames are displayed with monospace font in gitweb :) Clicking on the commit actually shows its diff in gitweb.

I belive cgit and gitweb displays roughly the same information on their commit pages; I don't see a diff in gitweb either unless I click one of the diff- links.

Quoted 3 lines

Final remark:
gitweb has the warmer colors.

Yes, gitweb definitly looks more polished. It's a bit slow, though...

Another remark - IMHO there are some practical benefits to be had from the virtual url support in cgit, e.g. linking to blobs:

http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=blob;h=ace11817054bfb5bcc8d55a31bd51b9dea49bbed;hb=fe25f897c62bb324660217e15dbd3091c808dbba;f=GL/mesa/X/Makefile.am

http://cgit.freedesktop.org/xorg/xserver/tree/GL/mesa/X/Makefile.am

--
larsh