diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-06 14:59:24 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-06 15:08:35 -0500 |
| commit | 37d98aaf4463db1ccb6a325409210aab799db115 (patch) | |
| tree | ee31e15340f9245c75a61cd4b01d529f3fb819a3 /include/git2/sys | |
| parent | 7a00adcc68ed84fb1f7f9403bfaf7a0a4503e310 (diff) | |
| download | libgit2-37d98aaf4463db1ccb6a325409210aab799db115.tar.gz | |
transport: transports can indicate support for fetch by oid
Diffstat (limited to 'include/git2/sys')
| -rw-r--r-- | include/git2/sys/remote.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/git2/sys/remote.h b/include/git2/sys/remote.h new file mode 100644 index 000000000..dd243ca55 --- /dev/null +++ b/include/git2/sys/remote.h @@ -0,0 +1,31 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ + +#ifndef INCLUDE_sys_git_remote_h +#define INCLUDE_sys_git_remote_h + +/** + * @file git2/sys/remote.h + * @brief Low-level remote functionality for custom transports + * @defgroup git_remote Low-level remote functionality + * @ingroup Git + * @{ +*/ + +GIT_BEGIN_DECL + +typedef enum { + /** Remote supports fetching an advertised object by ID. */ + GIT_REMOTE_CAPABILITY_TIP_OID = (1 << 0), + + /** Remote supports fetching an individual reachable object. */ + GIT_REMOTE_CAPABILITY_REACHABLE_OID = (1 << 1), +} git_remote_capability_t; + +/** @} */ +GIT_END_DECL +#endif |
