summaryrefslogtreecommitdiff
path: root/convert.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-06-12 22:13:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-13 18:40:51 (GMT)
commita33e0b2a77d7010ba8bf0e025fffaf98f464a938 (patch)
tree8a29e638dabfd58be446888daa618d24014d0ca5 /convert.h
parent82b474e025e89cfa294e81611c81355a73dc23a2 (diff)
downloadgit-a33e0b2a77d7010ba8bf0e025fffaf98f464a938.zip
git-a33e0b2a77d7010ba8bf0e025fffaf98f464a938.tar.gz
git-a33e0b2a77d7010ba8bf0e025fffaf98f464a938.tar.bz2
convert: convert renormalize_buffer to take an index
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'convert.h')
-rw-r--r--convert.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/convert.h b/convert.h
index 60cb41d..cecf59d 100644
--- a/convert.h
+++ b/convert.h
@@ -46,7 +46,8 @@ extern int convert_to_git(const struct index_state *istate,
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);
-extern int renormalize_buffer(const char *path, const char *src, size_t len,
+extern int renormalize_buffer(const struct index_state *istate,
+ const char *path, const char *src, size_t len,
struct strbuf *dst);
static inline int would_convert_to_git(const struct index_state *istate,
const char *path)