mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #7185 from weihanglo/remote-oid-type
feat(remote): expose `git_remote_oid_type`
This commit is contained in:
@@ -417,6 +417,19 @@ GIT_EXTERN(int) git_remote_ls(const git_remote_head ***out, size_t *size, git_r
|
||||
*/
|
||||
GIT_EXTERN(int) git_remote_connected(const git_remote *remote);
|
||||
|
||||
/**
|
||||
* Get the remote repository's object format.
|
||||
*
|
||||
* The remote (or more exactly its transport) must have connected to
|
||||
* the remote repository. This format is available as soon as the
|
||||
* connection to the remote is initiated and stays connected.
|
||||
*
|
||||
* @param out the resulting object format type
|
||||
* @param remote the remote
|
||||
* @return 0 on success, or an error code
|
||||
*/
|
||||
GIT_EXTERN(int) git_remote_oid_type(git_oid_t *out, git_remote *remote);
|
||||
|
||||
/**
|
||||
* Cancel the operation
|
||||
*
|
||||
|
||||
@@ -58,7 +58,6 @@ int git_remote_connect_options_normalize(
|
||||
const git_remote_connect_options *src);
|
||||
|
||||
int git_remote_capabilities(unsigned int *out, git_remote *remote);
|
||||
int git_remote_oid_type(git_oid_t *out, git_remote *remote);
|
||||
|
||||
|
||||
#define git_remote_connect_options__copy_opts(out, in) \
|
||||
|
||||
Reference in New Issue
Block a user