2010-08-09 17:48:10 -05:00
|
|
|
#ifndef FAST_EXPORT_H_
|
|
|
|
#define FAST_EXPORT_H_
|
|
|
|
|
2011-03-26 00:49:37 -05:00
|
|
|
struct strbuf;
|
2010-12-10 04:00:55 -06:00
|
|
|
struct line_buffer;
|
2010-10-10 21:41:06 -05:00
|
|
|
|
2011-03-05 13:30:23 +11:00
|
|
|
void fast_export_init(int fd);
|
|
|
|
void fast_export_deinit(void);
|
|
|
|
void fast_export_reset(void);
|
|
|
|
|
2010-12-13 16:41:12 +11:00
|
|
|
void fast_export_delete(const char *path);
|
|
|
|
void fast_export_modify(const char *path, uint32_t mode, const char *dataref);
|
2011-05-26 01:51:38 -05:00
|
|
|
void fast_export_begin_commit(uint32_t revision, const char *author,
|
2011-03-26 00:49:37 -05:00
|
|
|
const struct strbuf *log, const char *uuid,
|
|
|
|
const char *url, unsigned long timestamp);
|
2010-12-10 04:00:55 -06:00
|
|
|
void fast_export_end_commit(uint32_t revision);
|
|
|
|
void fast_export_data(uint32_t mode, uint32_t len, struct line_buffer *input);
|
|
|
|
|
|
|
|
/* If there is no such file at that rev, returns -1, errno == ENOENT. */
|
2010-12-13 16:41:12 +11:00
|
|
|
int fast_export_ls_rev(uint32_t rev, const char *path,
|
2010-12-10 04:00:55 -06:00
|
|
|
uint32_t *mode_out, struct strbuf *dataref_out);
|
2010-12-13 16:41:12 +11:00
|
|
|
int fast_export_ls(const char *path,
|
2010-12-10 04:00:55 -06:00
|
|
|
uint32_t *mode_out, struct strbuf *dataref_out);
|
2010-08-09 17:48:10 -05:00
|
|
|
|
|
|
|
#endif
|