mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 16:38:42 +00:00
ed7ff095ca
When downloading a snapshot, the snapshot name will often contain the repo name combined with a tag. This patch tries to exploit this so that the correct revision is downloaded even if no specific revision is specified. PS: this only occurs if neither 'h' nor 'id' is specified in the query- string. PPS: this also fixes a bug which occurs when trying to download a filename with an unsupported suffix: it used to try to print an error message to the user but failed since it didn't prepare the output properly. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
9 lines
215 B
C
9 lines
215 B
C
#ifndef UI_SNAPSHOT_H
|
|
#define UI_SNAPSHOT_H
|
|
|
|
extern void cgit_print_snapshot(const char *head, const char *hex,
|
|
const char *prefix, const char *filename,
|
|
int snapshot, int dwim);
|
|
|
|
#endif /* UI_SNAPSHOT_H */
|