From a80837171d4fb66a8b2eeb5c0fdcad107660dbe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Fri, 1 Apr 2016 13:09:01 +0200 Subject: crlf: raise a warning for safecrlf=warn --- include/git2/warning.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/git2/warning.h') diff --git a/include/git2/warning.h b/include/git2/warning.h index 3c25f62da..579c64a85 100644 --- a/include/git2/warning.h +++ b/include/git2/warning.h @@ -26,6 +26,11 @@ typedef enum { * available. */ GIT_WARNING_GENERIC, + + /** + * Warning related to line ending conversion. + */ + GIT_WARNING_CRLF, } git_warning_t; /** @@ -45,6 +50,14 @@ typedef struct { const char *str; } git_warning; +typedef struct { + /** The base struct */ + git_warning parent; + + /** The file this warning refers to */ + const char *path; +} git_warning_crlf; + /** * User-specified callback for warnings * -- cgit v1.2.1