Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
056fe4be
Commit
056fe4be
authored
Feb 14, 2022
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meta: provide an accessor for prerelease info
parent
ae74d5ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
include/git2/common.h
+11
-0
src/libgit2.c
+5
-0
No files found.
include/git2/common.h
View file @
056fe4be
...
...
@@ -122,6 +122,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
*/
...
...
src/libgit2.c
View file @
056fe4be
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment