]>
Commit | Line | Data |
---|---|---|
c0e6c23d DB |
1 | #ifndef FAST_EXPORT_H_ |
2 | #define FAST_EXPORT_H_ | |
3 | ||
195b7ca6 | 4 | struct strbuf; |
723b7a27 | 5 | struct line_buffer; |
e5e45ca1 | 6 | |
41529bbc DB |
7 | void fast_export_init(int fd); |
8 | void fast_export_deinit(void); | |
9 | void fast_export_reset(void); | |
10 | ||
03087971 DB |
11 | void fast_export_delete(const char *path); |
12 | void fast_export_modify(const char *path, uint32_t mode, const char *dataref); | |
9ecfa8ae | 13 | void fast_export_begin_commit(uint32_t revision, const char *author, |
195b7ca6 JN |
14 | const struct strbuf *log, const char *uuid, |
15 | const char *url, unsigned long timestamp); | |
723b7a27 JN |
16 | void fast_export_end_commit(uint32_t revision); |
17 | void fast_export_data(uint32_t mode, uint32_t len, struct line_buffer *input); | |
18 | ||
19 | /* If there is no such file at that rev, returns -1, errno == ENOENT. */ | |
03087971 | 20 | int fast_export_ls_rev(uint32_t rev, const char *path, |
723b7a27 | 21 | uint32_t *mode_out, struct strbuf *dataref_out); |
03087971 | 22 | int fast_export_ls(const char *path, |
723b7a27 | 23 | uint32_t *mode_out, struct strbuf *dataref_out); |
c0e6c23d DB |
24 | |
25 | #endif |