mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-05 19:55:36 +00:00
Merge pull request #288 from nulltoken/patch-4
GIT_EXTERN'd head_detached() and head_orphan()
This commit is contained in:
commit
02bc2d2f27
@ -228,7 +228,7 @@ GIT_EXTERN(int) git_repository_init(git_repository **repo_out, const char *path,
|
|||||||
* @return 1 if HEAD is detached, 0 if i'ts not; error code if there
|
* @return 1 if HEAD is detached, 0 if i'ts not; error code if there
|
||||||
* was an error.
|
* was an error.
|
||||||
*/
|
*/
|
||||||
int git_repository_head_detached(git_repository *repo);
|
GIT_EXTERN(int) git_repository_head_detached(git_repository *repo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the current branch is an orphan
|
* Check if the current branch is an orphan
|
||||||
@ -240,7 +240,7 @@ int git_repository_head_detached(git_repository *repo);
|
|||||||
* @return 1 if the current branch is an orphan, 0 if it's not; error
|
* @return 1 if the current branch is an orphan, 0 if it's not; error
|
||||||
* code if therewas an error
|
* code if therewas an error
|
||||||
*/
|
*/
|
||||||
int git_repository_head_orphan(git_repository *repo);
|
GIT_EXTERN(int) git_repository_head_orphan(git_repository *repo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a repository is empty
|
* Check if a repository is empty
|
||||||
|
Loading…
Reference in New Issue
Block a user