1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-04-24 06:05:15 +02:00

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>
This commit is contained in:
Elijah Newren 2023-04-22 20:17:12 +00:00 committed by Junio C Hamano
parent 623b80bef2
commit d5fff46f40
14 changed files with 22 additions and 6 deletions

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "cache.h"
#include "copy.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"

View File

@ -13,6 +13,7 @@
#include "abspath.h"
#include "advice.h"
#include "config.h"
#include "copy.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"

View File

@ -15,6 +15,7 @@
#include "cache.h"
#include "abspath.h"
#include "config.h"
#include "copy.h"
#include "builtin.h"
#include "run-command.h"
#include "environment.h"

View File

@ -6,6 +6,7 @@
#include "cache.h"
#include "abspath.h"
#include "config.h"
#include "copy.h"
#include "environment.h"
#include "gettext.h"
#include "refs.h"

View File

@ -2,6 +2,7 @@
#include "abspath.h"
#include "checkout.h"
#include "config.h"
#include "copy.h"
#include "builtin.h"
#include "dir.h"
#include "environment.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "bundle-uri.h"
#include "bundle.h"
#include "copy.h"
#include "environment.h"
#include "gettext.h"
#include "object-store.h"

View File

@ -593,12 +593,6 @@ int df_name_compare(const char *name1, size_t len1, int mode1,
int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
#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);
/* base85 */
int decode_85(char *dst, const char *line, int linelen);
void encode_85(char *buf, const unsigned char *data, int bytes);

View File

@ -2,6 +2,7 @@
#include "advice.h"
#include "config.h"
#include "convert.h"
#include "copy.h"
#include "gettext.h"
#include "hex.h"
#include "object-store.h"

1
copy.c
View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "copy.h"
#include "wrapper.h"
int copy_fd(int ifd, int ofd)

10
copy.h Normal file
View File

@ -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 */

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "copy.h"
#include "pkt-line.h"
#include "gettext.h"
#include "hex.h"

View File

@ -1,5 +1,6 @@
#include "../cache.h"
#include "../config.h"
#include "../copy.h"
#include "../environment.h"
#include "../gettext.h"
#include "../hex.h"

View File

@ -2,6 +2,7 @@
#include "abspath.h"
#include "alloc.h"
#include "config.h"
#include "copy.h"
#include "gettext.h"
#include "hex.h"
#include "lockfile.h"

View File

@ -3,6 +3,7 @@
#include "advice.h"
#include "alloc.h"
#include "config.h"
#include "copy.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"