Git fork

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>

authored by

Elijah Newren and committed by
Junio C Hamano
d5fff46f 623b80be

+22 -6
+1
builtin/bisect.c
··· 1 1 #include "builtin.h" 2 2 #include "cache.h" 3 + #include "copy.h" 3 4 #include "environment.h" 4 5 #include "gettext.h" 5 6 #include "hex.h"
+1
builtin/clone.c
··· 13 13 #include "abspath.h" 14 14 #include "advice.h" 15 15 #include "config.h" 16 + #include "copy.h" 16 17 #include "environment.h" 17 18 #include "gettext.h" 18 19 #include "hex.h"
+1
builtin/difftool.c
··· 15 15 #include "cache.h" 16 16 #include "abspath.h" 17 17 #include "config.h" 18 + #include "copy.h" 18 19 #include "builtin.h" 19 20 #include "run-command.h" 20 21 #include "environment.h"
+1
builtin/init-db.c
··· 6 6 #include "cache.h" 7 7 #include "abspath.h" 8 8 #include "config.h" 9 + #include "copy.h" 9 10 #include "environment.h" 10 11 #include "gettext.h" 11 12 #include "refs.h"
+1
builtin/worktree.c
··· 2 2 #include "abspath.h" 3 3 #include "checkout.h" 4 4 #include "config.h" 5 + #include "copy.h" 5 6 #include "builtin.h" 6 7 #include "dir.h" 7 8 #include "environment.h"
+1
bundle-uri.c
··· 1 1 #include "cache.h" 2 2 #include "bundle-uri.h" 3 3 #include "bundle.h" 4 + #include "copy.h" 4 5 #include "environment.h" 5 6 #include "gettext.h" 6 7 #include "object-store.h"
-6
cache.h
··· 593 593 int name_compare(const char *name1, size_t len1, const char *name2, size_t len2); 594 594 int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2); 595 595 596 - #define COPY_READ_ERROR (-2) 597 - #define COPY_WRITE_ERROR (-3) 598 - int copy_fd(int ifd, int ofd); 599 - int copy_file(const char *dst, const char *src, int mode); 600 - int copy_file_with_time(const char *dst, const char *src, int mode); 601 - 602 596 /* base85 */ 603 597 int decode_85(char *dst, const char *line, int linelen); 604 598 void encode_85(char *buf, const unsigned char *data, int bytes);
+1
convert.c
··· 2 2 #include "advice.h" 3 3 #include "config.h" 4 4 #include "convert.h" 5 + #include "copy.h" 5 6 #include "gettext.h" 6 7 #include "hex.h" 7 8 #include "object-store.h"
+1
copy.c
··· 1 1 #include "cache.h" 2 + #include "copy.h" 2 3 #include "wrapper.h" 3 4 4 5 int copy_fd(int ifd, int ofd)
+10
copy.h
··· 1 + #ifndef COPY_H 2 + #define COPY_H 3 + 4 + #define COPY_READ_ERROR (-2) 5 + #define COPY_WRITE_ERROR (-3) 6 + int copy_fd(int ifd, int ofd); 7 + int copy_file(const char *dst, const char *src, int mode); 8 + int copy_file_with_time(const char *dst, const char *src, int mode); 9 + 10 + #endif /* COPY_H */
+1
pkt-line.c
··· 1 1 #include "cache.h" 2 + #include "copy.h" 2 3 #include "pkt-line.h" 3 4 #include "gettext.h" 4 5 #include "hex.h"
+1
refs/files-backend.c
··· 1 1 #include "../cache.h" 2 2 #include "../config.h" 3 + #include "../copy.h" 3 4 #include "../environment.h" 4 5 #include "../gettext.h" 5 6 #include "../hex.h"
+1
rerere.c
··· 2 2 #include "abspath.h" 3 3 #include "alloc.h" 4 4 #include "config.h" 5 + #include "copy.h" 5 6 #include "gettext.h" 6 7 #include "hex.h" 7 8 #include "lockfile.h"
+1
sequencer.c
··· 3 3 #include "advice.h" 4 4 #include "alloc.h" 5 5 #include "config.h" 6 + #include "copy.h" 6 7 #include "environment.h" 7 8 #include "gettext.h" 8 9 #include "hex.h"