summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 620771c)
raw | patch | inline | side by side (parent: 620771c)
author | Ramkumar Ramachandra <artagnon@gmail.com> | |
Tue, 15 Nov 2011 16:59:37 +0000 (22:29 +0530) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Nov 2011 00:09:02 +0000 (16:09 -0800) |
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c | patch | blob | history |
diff --git a/convert.c b/convert.c
index 3bb5a4dd57c669bc59be0e2317ef33b64b024992..038b0be61723439844830f35ed2c72ab552769ba 100644 (file)
--- a/convert.c
+++ b/convert.c
return 1;
}
-static int git_path_check_crlf(const char *path, struct git_attr_check *check)
+static enum crlf_action git_path_check_crlf(const char *path, struct git_attr_check *check)
{
const char *value = check->value;
return CRLF_GUESS;
}
-static int git_path_check_eol(const char *path, struct git_attr_check *check)
+static enum crlf_action git_path_check_eol(const char *path, struct git_attr_check *check)
{
const char *value = check->value;
@@ -811,7 +811,7 @@ int renormalize_buffer(const char *path, const char *src, size_t len, struct str
src = dst->buf;
len = dst->len;
}
- return ret | convert_to_git(path, src, len, dst, 0);
+ return ret | convert_to_git(path, src, len, dst, SAFE_CRLF_FALSE);
}
/*****************************************************************