mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
Add the ability to check if a mempack is empty
Implement git_mempack_empty, which returns 1 if the mempack is empty and 0 otherwise.
This commit is contained in:
@@ -101,6 +101,14 @@ GIT_EXTERN(int) git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_ba
|
||||
*/
|
||||
GIT_EXTERN(int) git_mempack_reset(git_odb_backend *backend);
|
||||
|
||||
/**
|
||||
* Checks if mempack is empty
|
||||
*
|
||||
* @param backend The mempack backend
|
||||
* @return 1 if the repository is empty, 0 if it isn't
|
||||
*/
|
||||
GIT_EXTERN(int) git_mempack_empty(git_odb_backend *backend);
|
||||
|
||||
GIT_END_DECL
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user