Unverified Commit 83f2a20e by Edward Thomson Committed by GitHub

Merge pull request #6220 from libgit2/ethomson/version

meta: update version number to v1.5.0-alpha
parents 899fd4c5 b152b030
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.5.1) cmake_minimum_required(VERSION 3.5.1)
project(libgit2 VERSION "1.4.0" LANGUAGES C) project(libgit2 VERSION "1.5.0" LANGUAGES C)
# Add find modules to the path # Add find modules to the path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
......
...@@ -122,6 +122,17 @@ GIT_BEGIN_DECL ...@@ -122,6 +122,17 @@ GIT_BEGIN_DECL
GIT_EXTERN(int) git_libgit2_version(int *major, int *minor, int *rev); 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 * Combinations of these values describe the features with which libgit2
* was compiled * was compiled
*/ */
......
...@@ -7,12 +7,33 @@ ...@@ -7,12 +7,33 @@
#ifndef INCLUDE_git_version_h__ #ifndef INCLUDE_git_version_h__
#define INCLUDE_git_version_h__ #define INCLUDE_git_version_h__
#define LIBGIT2_VERSION "1.4.0" /**
* The version string for libgit2. This string follows semantic
* versioning (v2) guidelines.
*/
#define LIBGIT2_VERSION "1.5.0-alpha"
/** The major version number for this version of libgit2. */
#define LIBGIT2_VER_MAJOR 1 #define LIBGIT2_VER_MAJOR 1
#define LIBGIT2_VER_MINOR 4
/** The minor version number for this version of libgit2. */
#define LIBGIT2_VER_MINOR 5
/** The revision ("teeny") version number for this version of libgit2. */
#define LIBGIT2_VER_REVISION 0 #define LIBGIT2_VER_REVISION 0
/** The Windows DLL patch number for this version of libgit2. */
#define LIBGIT2_VER_PATCH 0 #define LIBGIT2_VER_PATCH 0
#define LIBGIT2_SOVERSION "1.4" /**
* The prerelease string for this version of libgit2. For development
* (nightly) builds, this will be "alpha". For prereleases, this will be
* a prerelease name like "beta" or "rc1". For final releases, this will
* be `NULL`.
*/
#define LIBGIT2_VER_PRERELEASE "alpha"
/** The library ABI soversion for this version of libgit2. */
#define LIBGIT2_SOVERSION "1.5"
#endif #endif
{ {
"name": "libgit2", "name": "libgit2",
"version": "1.4.0", "version": "1.5.0-alpha",
"repo": "https://github.com/libgit2/libgit2", "repo": "https://github.com/libgit2/libgit2",
"description": " A cross-platform, linkable library implementation of Git that you can use in your application.", "description": " A cross-platform, linkable library implementation of Git that you can use in your application.",
"install": "mkdir build && cd build && cmake .. && cmake --build ." "install": "mkdir build && cd build && cmake .. && cmake --build ."
......
...@@ -107,6 +107,11 @@ int git_libgit2_version(int *major, int *minor, int *rev) ...@@ -107,6 +107,11 @@ int git_libgit2_version(int *major, int *minor, int *rev)
return 0; return 0;
} }
const char *git_libgit2_prerelease(void)
{
return LIBGIT2_VER_PRERELEASE;
}
int git_libgit2_features(void) int git_libgit2_features(void)
{ {
return 0 return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment