]> gitweb.ps.run Git - ps-cgit/commit
Enable default value for head parameter
authorLars Hjemli <hjemli@gmail.com>
Tue, 15 May 2007 22:14:51 +0000 (00:14 +0200)
committerLars Hjemli <hjemli@gmail.com>
Tue, 15 May 2007 22:16:00 +0000 (00:16 +0200)
commitb28b105ec172b258ae5d629381a5890697c2f938
tree0673dc5ed94c8ce99c714d1204b6582f9ba96fc5
parent47a81c77fdd017227632c4df9a0b7b135b8a738d
Enable default value for head parameter

Pages which expect head to be specified in the querystring can now be
given a default value, configurable per repository (via repo.defbranch,
which defaults to "master").

Currently, only the log page actually works without parameters, but the
defbranch is bound to be exploited.

This also removes some dead code from shared.c

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.c
cgit.h
shared.c