Skip to content

Commit 3655851

Browse files
ethomsonpks-t
authored andcommitted
configuration: deprecate git_cvar safely
1 parent 658022c commit 3655851

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/git2/deprecated.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#ifndef INCLUDE_git_deprecated_h__
88
#define INCLUDE_git_deprecated_h__
99

10+
#include "config.h"
1011
#include "common.h"
1112
#include "blame.h"
1213
#include "buffer.h"
@@ -116,6 +117,19 @@ GIT_EXTERN(void) git_buf_free(git_buf *buffer);
116117

117118
/**@}*/
118119

120+
/** @name Deprecated Config Functions and Constants
121+
*/
122+
/**@{*/
123+
124+
#define GIT_CVAR_FALSE GIT_CONFIGMAP_FALSE
125+
#define GIT_CVAR_TRUE GIT_CONFIGMAP_TRUE
126+
#define GIT_CVAR_INT32 GIT_CONFIGMAP_INT32
127+
#define GIT_CVAR_STRING GIT_CONFIGMAP_STRING
128+
129+
typedef git_configmap git_cvar_map;
130+
131+
/**@}*/
132+
119133
/** @name Deprecated Error Functions and Constants
120134
*
121135
* These functions and enumeration values are retained for backward

0 commit comments

Comments
 (0)