diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2022-12-02 00:45:13 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-12 22:02:00 +0000 |
| commit | 53fcd5b8f5f069ee9a2567280dca81b74192da74 (patch) | |
| tree | 17e9fa49386cdf35578070a7d5347ea842d42038 /include | |
| parent | 0006ff63359358bc5e65ea5a2b6ef7ba5eca2e8e (diff) | |
| download | libgit2-53fcd5b8f5f069ee9a2567280dca81b74192da74.tar.gz | |
transport: teach transports about oid types and SHA256
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/sys/transport.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/sys/transport.h b/include/git2/sys/transport.h index 06ae7079f..b70582188 100644 --- a/include/git2/sys/transport.h +++ b/include/git2/sys/transport.h @@ -57,6 +57,18 @@ struct git_transport { unsigned int *capabilities, git_transport *transport); +#ifdef GIT_EXPERIMENTAL_SHA256 + /** + * Gets the object type for the remote repository. + * + * This function may be called after a successful call to + * `connect()`. + */ + int GIT_CALLBACK(oid_type)( + git_oid_t *object_type, + git_transport *transport); +#endif + /** * Get the list of available references in the remote repository. * |
