/*
* Readers that turn raw git object bodies and the incoming request URL into
* the records cgit renders from. Commit and tag objects arrive as flat text,
* so the work here is splitting off the headers and re-encoding the remaining
* free text into the page encoding.
*/#ifndef CGIT_PARSING_H
#define CGIT_PARSING_H
#include"cgit.h"/*
* Split a request url into the repository, the page and the path it names,
* storing them in ctx.qry.
*/externvoidcgit_parse_url(constchar *url);
externstruct string_list *cgit_mailmap(void);
externstruct commitinfo *cgit_parse_commit(struct commit *commit);
externstruct taginfo *cgit_parse_tag(struct tag *tag);
#endif// CGIT_PARSING_H