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>
Αυτή η υποβολή περιλαμβάνεται σε:
Lars Hjemli
2007-05-16 00:14:51 +02:00
γονέας 47a81c77fd
υποβολή b28b105ec1
3 αρχεία άλλαξαν με 7 προσθήκες και 14 διαγραφές

1
cgit.h

@ -35,6 +35,7 @@ struct repoinfo {
char *path;
char *desc;
char *owner;
char *defbranch;
char *module_link;
int snapshots;
};