diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2016-04-01 13:09:01 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2016-04-01 13:09:01 +0200 |
commit | a80837171d4fb66a8b2eeb5c0fdcad107660dbe7 (patch) | |
tree | 612ec3336835f7d952b203bbdcd563f8a385b9ca /include/git2/warning.h | |
parent | dada5255ab81a0c3c2b280890e433a49e8e4e320 (diff) | |
download | libgit2-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.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 * |