2010-08-10 00:48:10 +02:00
|
|
|
#ifndef FAST_EXPORT_H_
|
|
|
|
#define FAST_EXPORT_H_
|
|
|
|
|
2010-12-10 11:00:55 +01:00
|
|
|
struct strbuf;
|
|
|
|
struct line_buffer;
|
2010-10-11 04:41:06 +02:00
|
|
|
|
2011-03-05 03:30:23 +01:00
|
|
|
void fast_export_init(int fd);
|
|
|
|
void fast_export_deinit(void);
|
|
|
|
void fast_export_reset(void);
|
|
|
|
|
2010-12-10 11:00:55 +01:00
|
|
|
void fast_export_delete(uint32_t depth, const uint32_t *path);
|
|
|
|
void fast_export_modify(uint32_t depth, const uint32_t *path,
|
|
|
|
uint32_t mode, const char *dataref);
|
2011-03-23 00:19:46 +01:00
|
|
|
void fast_export_begin_commit(uint32_t revision, const char *author, char *log,
|
2011-03-22 23:52:17 +01:00
|
|
|
const char *uuid, const char *url,
|
|
|
|
unsigned long timestamp);
|
2010-12-10 11:00:55 +01: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. */
|
|
|
|
int fast_export_ls_rev(uint32_t rev, uint32_t depth, const uint32_t *path,
|
|
|
|
uint32_t *mode_out, struct strbuf *dataref_out);
|
|
|
|
int fast_export_ls(uint32_t depth, const uint32_t *path,
|
|
|
|
uint32_t *mode_out, struct strbuf *dataref_out);
|
2010-08-10 00:48:10 +02:00
|
|
|
|
|
|
|
#endif
|