Skip to content

Commit 83f2a20

Browse files
authored
Merge pull request libgit2#6220 from libgit2/ethomson/version
meta: update version number to v1.5.0-alpha
2 parents 899fd4c + b152b03 commit 83f2a20

File tree

5 files changed

+45
-8
lines changed

5 files changed

+45
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
cmake_minimum_required(VERSION 3.5.1)
55

6-
project(libgit2 VERSION "1.4.0" LANGUAGES C)
6+
project(libgit2 VERSION "1.5.0" LANGUAGES C)
77

88
# Add find modules to the path
99
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")

include/git2/common.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ GIT_BEGIN_DECL
121121
*/
122122
GIT_EXTERN(int) git_libgit2_version(int *major, int *minor, int *rev);
123123

124+
/**
125+
* Return the prerelease state of the libgit2 library currently being
126+
* used. For nightly builds during active development, this will be
127+
* "alpha". Releases may have a "beta" or release candidate ("rc1",
128+
* "rc2", etc) prerelease. For a final release, this function returns
129+
* NULL.
130+
*
131+
* @return the name of the prerelease state or NULL
132+
*/
133+
GIT_EXTERN(const char *) git_libgit2_prerelease(void);
134+
124135
/**
125136
* Combinations of these values describe the features with which libgit2
126137
* was compiled

include/git2/version.h

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,33 @@
77
#ifndef INCLUDE_git_version_h__
88
#define INCLUDE_git_version_h__
99

10-
#define LIBGIT2_VERSION "1.4.0"
11-
#define LIBGIT2_VER_MAJOR 1
12-
#define LIBGIT2_VER_MINOR 4
13-
#define LIBGIT2_VER_REVISION 0
14-
#define LIBGIT2_VER_PATCH 0
10+
/**
11+
* The version string for libgit2. This string follows semantic
12+
* versioning (v2) guidelines.
13+
*/
14+
#define LIBGIT2_VERSION "1.5.0-alpha"
15+
16+
/** The major version number for this version of libgit2. */
17+
#define LIBGIT2_VER_MAJOR 1
18+
19+
/** The minor version number for this version of libgit2. */
20+
#define LIBGIT2_VER_MINOR 5
21+
22+
/** The revision ("teeny") version number for this version of libgit2. */
23+
#define LIBGIT2_VER_REVISION 0
24+
25+
/** The Windows DLL patch number for this version of libgit2. */
26+
#define LIBGIT2_VER_PATCH 0
27+
28+
/**
29+
* The prerelease string for this version of libgit2. For development
30+
* (nightly) builds, this will be "alpha". For prereleases, this will be
31+
* a prerelease name like "beta" or "rc1". For final releases, this will
32+
* be `NULL`.
33+
*/
34+
#define LIBGIT2_VER_PRERELEASE "alpha"
1535

16-
#define LIBGIT2_SOVERSION "1.4"
36+
/** The library ABI soversion for this version of libgit2. */
37+
#define LIBGIT2_SOVERSION "1.5"
1738

1839
#endif

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "libgit2",
3-
"version": "1.4.0",
3+
"version": "1.5.0-alpha",
44
"repo": "https://github.com/libgit2/libgit2",
55
"description": " A cross-platform, linkable library implementation of Git that you can use in your application.",
66
"install": "mkdir build && cd build && cmake .. && cmake --build ."

src/libgit2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ int git_libgit2_version(int *major, int *minor, int *rev)
107107
return 0;
108108
}
109109

110+
const char *git_libgit2_prerelease(void)
111+
{
112+
return LIBGIT2_VER_PRERELEASE;
113+
}
114+
110115
int git_libgit2_features(void)
111116
{
112117
return 0

0 commit comments

Comments
 (0)