allow blob extract blobs by head/path combination

If blob is invoked with no id=, it tries to look up h= and search for path= in
 there. Once found, proceed as normal, otherwise, fail as normal.

Signed-off-by: Michael Krelin <hacker@klever.net>
This commit is contained in:
Michael Krelin
2008-06-24 23:33:24 +02:00
parent e6b635c2b1
commit 01d2dce7e7
3 changed files with 35 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#ifndef UI_BLOB_H
#define UI_BLOB_H
extern void cgit_print_blob(const char *hex, char *path);
extern void cgit_print_blob(const char *hex, char *path, const char *head);
#endif /* UI_BLOB_H */