diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-04-04 10:56:23 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-04-04 10:56:23 -0700 |
| commit | 0f5e8851737282c9dd342032fe9a2d8b10367c9a (patch) | |
| tree | 916a4802b214e0c8a03548a166bb32b40200e89d /fetch-negotiator.h | |
| parent | Merge branch 'jc/mailsplit-warn-on-tty' (diff) | |
| parent | docs: mention --refetch fetch option (diff) | |
| download | git-0f5e8851737282c9dd342032fe9a2d8b10367c9a.tar.gz git-0f5e8851737282c9dd342032fe9a2d8b10367c9a.zip | |
Merge branch 'rc/fetch-refetch'
"git fetch --refetch" learned to fetch everything without telling
the other side what we already have, which is useful when you
cannot trust what you have in the local object store.
* rc/fetch-refetch:
docs: mention --refetch fetch option
fetch: after refetch, encourage auto gc repacking
t5615-partial-clone: add test for fetch --refetch
fetch: add --refetch option
builtin/fetch-pack: add --refetch option
fetch-pack: add refetch
fetch-negotiator: add specific noop initializer
Diffstat (limited to 'fetch-negotiator.h')
| -rw-r--r-- | fetch-negotiator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fetch-negotiator.h b/fetch-negotiator.h index ea78868504..e348905a1f 100644 --- a/fetch-negotiator.h +++ b/fetch-negotiator.h @@ -53,7 +53,15 @@ struct fetch_negotiator { void *data; }; +/* + * Initialize a negotiator based on the repository settings. + */ void fetch_negotiator_init(struct repository *r, struct fetch_negotiator *negotiator); +/* + * Initialize a noop negotiator. + */ +void fetch_negotiator_init_noop(struct fetch_negotiator *negotiator); + #endif |
