aboutsummaryrefslogtreecommitdiffstats
path: root/ui-snapshot.h
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-10-11 20:09:42 +0200
committerLars Hjemli <hjemli@gmail.com>2008-10-11 20:09:42 +0200
commited7ff095ca467cdc4c8a1a1459847d68e50c9b91 (patch)
tree4ed7425520cb76eff0a4e7756869620b2562b6c9 /ui-snapshot.h
parentAdd cgit_query.nohead flag (diff)
downloadcgit-ed7ff095ca467cdc4c8a1a1459847d68e50c9b91.tar.xz
cgit-ed7ff095ca467cdc4c8a1a1459847d68e50c9b91.zip
ui-snapshot: add dwimmery
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>
Diffstat (limited to 'ui-snapshot.h')
-rw-r--r--ui-snapshot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-snapshot.h b/ui-snapshot.h
index 6e03761..3540303 100644
--- a/ui-snapshot.h
+++ b/ui-snapshot.h
@@ -3,6 +3,6 @@
extern void cgit_print_snapshot(const char *head, const char *hex,
const char *prefix, const char *filename,
- int snapshot);
+ int snapshot, int dwim);
#endif /* UI_SNAPSHOT_H */