diff options
Diffstat (limited to 'include/git2/warning.h')
-rw-r--r-- | include/git2/warning.h | 13 |
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 * |