mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 06:59:28 +02:00
WIP: add paths/backlinks to tree/blobview
This commit is contained in:
parent
2c2047ff67
commit
5cd2bf7e7f
4 changed files with 15 additions and 5 deletions
3
shared.c
3
shared.c
|
@ -39,6 +39,7 @@ char *cgit_query_head = NULL;
|
|||
char *cgit_query_search = NULL;
|
||||
char *cgit_query_sha1 = NULL;
|
||||
char *cgit_query_sha2 = NULL;
|
||||
char *cgit_query_path = NULL;
|
||||
int cgit_query_ofs = 0;
|
||||
|
||||
int htmlfd = 0;
|
||||
|
@ -100,6 +101,8 @@ void cgit_querystring_cb(const char *name, const char *value)
|
|||
cgit_query_has_sha1 = 1;
|
||||
} else if (!strcmp(name, "ofs")) {
|
||||
cgit_query_ofs = atoi(value);
|
||||
} else if (!strcmp(name, "path")) {
|
||||
cgit_query_path = xstrdup(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue