Commit Graph
3 Commits
Author SHA1 Message Date
Florian Pritz 8d946079c5 ui-shared.c: fix segfault when repo is empty
PATH_INFO="/$REPONAME/commit/?id=1" QUERY_STRING="id=1" ./cgit.cgi
triggers segfault when the repository is empty and therefore
ctx.qry.head is unset

Signed-off-by: Florian Pritz <[email protected]>
Signed-off-by: Lars Hjemli <[email protected]>
2010-02-27 12:47:57 +01:00
Florian Pritz d67cc7f9d5 Add 'linenumbers' config option
Signed-off-by: Florian Pritz <[email protected]>
Signed-off-by: Lars Hjemli <[email protected]>
2009-08-21 14:17:49 +02:00
Florian Pritz 03389d6e67 ui-tree.c: show line numbers when highlighting
When source-filter is enabled, cgit currently will not display
linenumbers in the tree view. This patch restores the linenumber
function.

Signed-off-by: Florian Pritz <[email protected]>
Signed-off-by: Lars Hjemli <[email protected]>
2009-08-21 14:14:21 +02:00