]> Lady’s Gitweb - Gitweb/commit
gitweb: Support for 'forks'
authorPetr Baudis <redacted>
Tue, 24 Oct 2006 03:33:17 +0000 (05:33 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commitaa9bf2a5e50181a0fa3724fdaefdafeaa5756b12818391bd53692119bc80e2e1
treecc295796b82d5153fcd72cfa6bb6ca4ec0c4c0caa65a460fcb2491becbbbb848
parent689cd0d5a0a925e72cc2275929fd42461c2afa68d8aef3285a083324740e5b84
gitweb: Support for 'forks'

On repo.or.cz, I want to support project 'forks', which are meant
for repositories which are spinoffs of a given project and share
its objects database through the alternates mechanism. But another
(and perhaps even greater) incentive for that is that those 'forked
projects' do not clutter the main project index but are completely
grouped inside of the project view.

A forked project is just like a normal project, but given project
$projectroot/$projname.git, the forked project resides in directory
$projectroot/$projname/$forkname.git. This is a somewhat arbitrary
naming rule, but I think that for now it's fine; if someone will need
something wildly different, let them submit a patch. The 'forked'
mode is by default off and can be turned on in runtime gitweb
configuration just like other features.

A project having forks is marked by a '+' (pointing to the list of
forks) in the project list (this could become some cutesy AJAXy
DHTML in the future), there is a forks section in the project
summary similar to the heads and tags sections, and of course
a forks view which looks the same as the root project list.

Forks can be recursive.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.336225 seconds and 4 git commands to generate.