diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-23 00:29:03 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-25 09:06:50 +0000 |
commit | 9f3a5a64b5f3c402e14094da2e4e71d49f03be9e (patch) | |
tree | cfddf7ace0e45892ae9327992269b4d3f8862f79 | |
parent | 9c5e05ad7621228b0d7e6b3b23d96b917604a53c (diff) | |
download | libgit2-9f3a5a64b5f3c402e14094da2e4e71d49f03be9e.tar.gz |
deprecation: offer GIT_DEPRECATE_HARD
Users can define `GIT_DEPRECATE_HARD` if they want to remove all
functions that we've "softly" deprecated.
-rw-r--r-- | include/git2/deprecated.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h index 8f4ec8b0c..9d3a091a3 100644 --- a/include/git2/deprecated.h +++ b/include/git2/deprecated.h @@ -14,6 +14,11 @@ #include "object.h" #include "refs.h" +/* + * Users can avoid deprecated functions by defining `GIT_DEPRECATE_HARD`. + */ +#ifndef GIT_DEPRECATE_HARD + /** * @file git2/deprecated.h * @brief libgit2 deprecated functions and values @@ -244,3 +249,5 @@ GIT_EXTERN(void) giterr_set_oom(void); GIT_END_DECL #endif + +#endif |