diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-16 17:59:20 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-16 17:59:20 -0800 |
commit | 2ac4b4b2228f3ef996db7b07aea74c4b1a796f38 (patch) | |
tree | 245c7610f3a42fef9d63a883a281dc8e3efffe8a /cache.h | |
parent | 990732609ce735c482e571ad95767edf1d693b41 (diff) | |
parent | 21e5ad50fc5e7277c74cfbb3cf6502468e840f86 (diff) | |
download | git-2ac4b4b2228f3ef996db7b07aea74c4b1a796f38.tar.gz |
Merge branch 'sp/safecrlf'
* sp/safecrlf:
safecrlf: Add mechanism to warn about irreversible crlf conversions
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -383,6 +383,14 @@ extern size_t packed_git_limit; extern size_t delta_base_cache_limit; extern int auto_crlf; +enum safe_crlf { + SAFE_CRLF_FALSE = 0, + SAFE_CRLF_FAIL = 1, + SAFE_CRLF_WARN = 2, +}; + +extern enum safe_crlf safe_crlf; + #define GIT_REPO_VERSION 0 extern int repository_format_version; extern int check_repository_format(void); @@ -691,7 +699,8 @@ extern void trace_argv_printf(const char **argv, const char *format, ...); /* convert.c */ /* returns 1 if *dst was used */ -extern int convert_to_git(const char *path, const char *src, size_t len, struct strbuf *dst); +extern int convert_to_git(const char *path, const char *src, size_t len, + struct strbuf *dst, enum safe_crlf checksafe); extern int convert_to_working_tree(const char *path, const char *src, size_t len, struct strbuf *dst); /* add */ |