]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/hgfs/fns.h
hgfs: get previous file revisions with appending .n or .revn
[plan9front.git] / sys / src / cmd / hgfs / fns.h
1 /* hash */
2 int Hfmt(Fmt *f);
3 int strhash(char *s, uchar *h);
4 int fhash(int fd, uchar p1[], uchar p2[], uchar h[]);
5
6 /* patch */
7 int fpatchmark(int pfd, char *mark);
8 int fpatch(int ofd, int bfd, int pfd);
9
10 /* zip */
11 int funzip(int ofd, int zfd, int len);
12
13 /* revlog */
14 int fmktemp(void);
15 int revlogopen(Revlog *r, char *path, int mode);
16 void revlogupdate(Revlog *r);
17 void revlogclose(Revlog *r);
18 int revlogextract(Revlog *r, int rev, int ofd);
19 uchar *revhash(Revlog *r, int rev);
20 int hashrev(Revlog *r, uchar hash[]);
21 int revlogopentemp(Revlog *r, int rev);
22
23 /* info */
24 Revinfo *loadrevinfo(Revlog *changelog, int rev);
25
26 /* tree */
27 char *nodepath(char *s, char *e, Revnode *nd);
28 Revnode *mknode(char *name, uchar *hash, char mode);
29 Revtree *loadfilestree(Revlog *changelog, Revlog *manifest, Revinfo *ri);
30 Revtree *loadchangestree(Revlog *changelog, Revlog *manifest, Revinfo *ri);
31 void closerevtree(Revtree *t);
32