mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
meta: provide an accessor for prerelease info
This commit is contained in:
@@ -121,6 +121,17 @@ GIT_BEGIN_DECL
|
||||
*/
|
||||
GIT_EXTERN(int) git_libgit2_version(int *major, int *minor, int *rev);
|
||||
|
||||
/**
|
||||
* Return the prerelease state of the libgit2 library currently being
|
||||
* used. For nightly builds during active development, this will be
|
||||
* "alpha". Releases may have a "beta" or release candidate ("rc1",
|
||||
* "rc2", etc) prerelease. For a final release, this function returns
|
||||
* NULL.
|
||||
*
|
||||
* @return the name of the prerelease state or NULL
|
||||
*/
|
||||
GIT_EXTERN(const char *) git_libgit2_prerelease(void);
|
||||
|
||||
/**
|
||||
* Combinations of these values describe the features with which libgit2
|
||||
* was compiled
|
||||
|
||||
@@ -107,6 +107,11 @@ int git_libgit2_version(int *major, int *minor, int *rev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *git_libgit2_prerelease(void)
|
||||
{
|
||||
return LIBGIT2_VER_PRERELEASE;
|
||||
}
|
||||
|
||||
int git_libgit2_features(void)
|
||||
{
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user