Raw
1 #ifndef COPY_H
2 #define COPY_H
3
4 struct repository;
5
6 #define COPY_READ_ERROR (-2)
7 #define COPY_WRITE_ERROR (-3)
8 int copy_fd(int ifd, int ofd);
9 int copy_file(struct repository *repo,
10 const char *dst, const char *src, int mode);
11 int copy_file_with_time(struct repository *repo,
12 const char *dst, const char *src, int mode);
13
14 #endif /* COPY_H */