author | Lars Hjemli <hjemli@gmail.com> | 2009-06-07 18:43:08 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-06-07 18:43:08 (UTC) |
commit | e429fb0cca1e8c78da0ec38fe578bafdeec65534 (patch) (side-by-side diff) | |
tree | 58c172f939509879045192fb8f1ba1d79160e67f /cgit.h | |
parent | 45e7fcecc1117440e6274ce3c6ab7d893c4986ee (diff) | |
download | cgit-e429fb0cca1e8c78da0ec38fe578bafdeec65534.zip cgit-e429fb0cca1e8c78da0ec38fe578bafdeec65534.tar.gz cgit-e429fb0cca1e8c78da0ec38fe578bafdeec65534.tar.bz2 |
Return http statuscode 404 on unknown branch
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -168,32 +168,34 @@ struct cgit_config { int nocache; int renamelimit; int snapshots; int summary_branches; int summary_log; int summary_tags; }; struct cgit_page { time_t modified; time_t expires; size_t size; char *mimetype; char *charset; char *filename; char *title; + int status; + char *statusmsg; }; struct cgit_context { struct cgit_query qry; struct cgit_config cfg; struct cgit_repo *repo; struct cgit_page page; }; struct cgit_snapshot_format { const char *suffix; const char *mimetype; write_archive_fn_t write_func; int bit; }; |