libgit2

git_remote_oid_type

Version:

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.

Signature

int git_remote_oid_type(git_oid_t *out, git_remote *remote);

Parameters

In
out

the resulting object format type

In
remote

the remote

Returns

int

0 on success, or an error code

Versions