diff options
author | Derrick Stolee <derrickstolee@github.com> | 2023-01-31 13:29:12 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-31 08:57:48 -0800 |
commit | c93c3d2fa42bec64948441cb339d78e2044ff9a3 (patch) | |
tree | 8cf29470bf6343bcacfe862d7ba2ed31e7c16e1c /commit.c | |
parent | 7bc73e7b61e60cbc0730a4f0e938c482c459e000 (diff) |
bundle-uri: parse bundle.heuristic=creationToken
The bundle.heuristic value communicates that the bundle list is
organized to make use of the bundle.<id>.creationToken values that may
be provided in the bundle list. Those values will create a total order
on the bundles, allowing the Git client to download them in a specific
order and even remember previously-downloaded bundles by storing the
maximum creation token value.
Before implementing any logic that parses or uses the
bundle.<id>.creationToken values, teach Git to parse the
bundle.heuristic value from a bundle list. We can use 'test-tool
bundle-uri' to print the heuristic value and verify that the parsing
works correctly.
As an extra precaution, create the internal 'heuristics' array to be a
list of (enum, string) pairs so we can iterate through the array entries
carefully, regardless of the enum values.
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions