mirror of
https://git.zx2c4.com/cgit
synced 2025-07-02 14:24:33 +02:00
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:
parent
e6b635c2b1
commit
01d2dce7e7
3 changed files with 35 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue