aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-23 16:59:16 -0800
committerJunio C Hamano <gitster@pobox.com>2008-02-23 16:59:16 -0800
commitfe3403c3205de44faa926a086b4b99f157fc63fe (patch)
tree48b1b2706d35ee3521f68218f3aa78da8b755193 /cache.h
parent52f3c81a9d41af019ab8f05051c5251f078b12e5 (diff)
downloadgit-fe3403c3205de44faa926a086b4b99f157fc63fe.tar.gz
git-fe3403c3205de44faa926a086b4b99f157fc63fe.tar.xz
ws_fix_copy(): move the whitespace fixing function to ws.c
This is used by git-apply but we can use it elsewhere by slightly generalizing it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index ad11c90ca..3d4c6b078 100644
--- a/cache.h
+++ b/cache.h
@@ -661,6 +661,7 @@ extern unsigned check_and_emit_line(const char *line, int len, unsigned ws_rule,
FILE *stream, const char *set,
const char *reset, const char *ws);
extern char *whitespace_error_string(unsigned ws);
+extern int ws_fix_copy(char *, const char *, int, unsigned, int *);
/* ls-files */
int pathspec_match(const char **spec, char *matched, const char *filename, int skiplen);