Skip to content

Commit 9f3a5a6

Browse files
committed
deprecation: offer GIT_DEPRECATE_HARD
Users can define `GIT_DEPRECATE_HARD` if they want to remove all functions that we've "softly" deprecated.
1 parent 9c5e05a commit 9f3a5a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/git2/deprecated.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
#include "object.h"
1515
#include "refs.h"
1616

17+
/*
18+
* Users can avoid deprecated functions by defining `GIT_DEPRECATE_HARD`.
19+
*/
20+
#ifndef GIT_DEPRECATE_HARD
21+
1722
/**
1823
* @file git2/deprecated.h
1924
* @brief libgit2 deprecated functions and values
@@ -244,3 +249,5 @@ GIT_EXTERN(void) giterr_set_oom(void);
244249
GIT_END_DECL
245250

246251
#endif
252+
253+
#endif

0 commit comments

Comments
 (0)