6 #define REPO_MODE_DIR 0040000
7 #define REPO_MODE_BLB 0100644
8 #define REPO_MODE_EXE 0100755
9 #define REPO_MODE_LNK 0120000
11 uint32_t next_blob_mark(void);
12 void repo_copy(uint32_t revision
, const char *src
, const char *dst
);
13 void repo_add(const char *path
, uint32_t mode
, uint32_t blob_mark
);
14 const char *repo_read_path(const char *path
, uint32_t *mode_out
);
15 void repo_delete(const char *path
);
16 void repo_commit(uint32_t revision
, const char *author
,
17 const struct strbuf
*log
, const char *uuid
, const char *url
,
18 long unsigned timestamp
);
19 void repo_diff(uint32_t r1
, uint32_t r2
);
21 void repo_reset(void);