vcs-svn / fast_export.hon commit Merge branch 'jm/maint-strncpy-diff-no-index' into maint (a16ae14)
   1#ifndef FAST_EXPORT_H_
   2#define FAST_EXPORT_H_
   3
   4struct strbuf;
   5struct line_buffer;
   6
   7void fast_export_init(int fd);
   8void fast_export_deinit(void);
   9void fast_export_reset(void);
  10
  11void fast_export_delete(const char *path);
  12void fast_export_modify(const char *path, uint32_t mode, const char *dataref);
  13void fast_export_begin_commit(uint32_t revision, const char *author,
  14                        const struct strbuf *log, const char *uuid,
  15                        const char *url, unsigned long timestamp);
  16void fast_export_end_commit(uint32_t revision);
  17void fast_export_data(uint32_t mode, off_t len, struct line_buffer *input);
  18void fast_export_blob_delta(uint32_t mode,
  19                        uint32_t old_mode, const char *old_data,
  20                        off_t len, struct line_buffer *input);
  21
  22/* If there is no such file at that rev, returns -1, errno == ENOENT. */
  23int fast_export_ls_rev(uint32_t rev, const char *path,
  24                        uint32_t *mode_out, struct strbuf *dataref_out);
  25int fast_export_ls(const char *path,
  26                        uint32_t *mode_out, struct strbuf *dataref_out);
  27
  28#endif