Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/copy.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-04-22 23:17:12 +0300
committerJunio C Hamano <gitster@pobox.com>2023-04-24 22:47:31 +0300
commitd5fff46f4025e23ec61b9d74eac2bb19e7a2385d (patch)
tree223c06ef38786395f30a23006a2fdd71c451a978 /copy.h
parent623b80bef2431f2f0dc550dda9da5cb633c606fd (diff)
copy.h: move declarations for copy.c functions from cache.h
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'copy.h')
-rw-r--r--copy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/copy.h b/copy.h
new file mode 100644
index 0000000000..2af77cba86
--- /dev/null
+++ b/copy.h
@@ -0,0 +1,10 @@
+#ifndef COPY_H
+#define COPY_H
+
+#define COPY_READ_ERROR (-2)
+#define COPY_WRITE_ERROR (-3)
+int copy_fd(int ifd, int ofd);
+int copy_file(const char *dst, const char *src, int mode);
+int copy_file_with_time(const char *dst, const char *src, int mode);
+
+#endif /* COPY_H */