2010-08-10 00:48:10 +02:00
|
|
|
#ifndef FAST_EXPORT_H_
|
|
|
|
#define FAST_EXPORT_H_
|
|
|
|
|
2011-03-26 06:49:37 +01:00
|
|
|
struct strbuf;
|
2010-12-10 11:00:55 +01:00
|
|
|
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-13 06:41:12 +01:00
|
|
|
void fast_export_delete(const char *path);
|
|
|
|
void fast_export_modify(const char *path, uint32_t mode, const char *dataref);
|
2011-05-26 08:51:38 +02:00
|
|
|
void fast_export_begin_commit(uint32_t revision, const char *author,
|
2011-03-26 06:49:37 +01:00
|
|
|
const struct strbuf *log, 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. */
|
2010-12-13 06:41:12 +01:00
|
|
|
int fast_export_ls_rev(uint32_t rev, const char *path,
|
2010-12-10 11:00:55 +01:00
|
|
|
uint32_t *mode_out, struct strbuf *dataref_out);
|
2010-12-13 06:41:12 +01:00
|
|
|
int fast_export_ls(const char *path,
|
2010-12-10 11:00:55 +01:00
|
|
|
uint32_t *mode_out, struct strbuf *dataref_out);
|
2010-08-10 00:48:10 +02:00
|
|
|
|
|
|
|
#endif
|