summaryrefslogtreecommitdiff
path: root/include/git2/warning.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-04-01 13:09:01 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2016-04-01 13:09:01 +0200
commita80837171d4fb66a8b2eeb5c0fdcad107660dbe7 (patch)
tree612ec3336835f7d952b203bbdcd563f8a385b9ca /include/git2/warning.h
parentdada5255ab81a0c3c2b280890e433a49e8e4e320 (diff)
downloadlibgit2-cmn/warnings.tar.gz
crlf: raise a warning for safecrlf=warncmn/warnings
Diffstat (limited to 'include/git2/warning.h')
-rw-r--r--include/git2/warning.h13
1 files changed, 13 insertions, 0 deletions
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
*