diff options
author | Derrick Stolee <derrickstolee@github.com> | 2023-01-31 14:29:13 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-31 17:57:48 +0100 |
commit | 512fccf8a503bd8617fe46cb62c77480b83fbaea (patch) | |
tree | 0a9357389668dcf3422c38c133ed6991abbba6ae /bundle-uri.h | |
parent | bundle-uri: parse bundle.heuristic=creationToken (diff) | |
download | git-512fccf8a503bd8617fe46cb62c77480b83fbaea.tar.xz git-512fccf8a503bd8617fe46cb62c77480b83fbaea.zip |
bundle-uri: parse bundle.<id>.creationToken values
The previous change taught Git to parse the bundle.heuristic value,
especially when its value is "creationToken". Now, teach Git to parse
the bundle.<id>.creationToken values on each bundle in a bundle list.
Before implementing any logic based on creationToken values for the
creationToken heuristic, parse and print these values for testing
purposes.
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bundle-uri.h')
-rw-r--r-- | bundle-uri.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bundle-uri.h b/bundle-uri.h index 2e44a50a90..ef32840bfa 100644 --- a/bundle-uri.h +++ b/bundle-uri.h @@ -42,6 +42,12 @@ struct remote_bundle_info { * this boolean is true. */ unsigned unbundled:1; + + /** + * If the bundle is part of a list with the creationToken + * heuristic, then we use this member for sorting the bundles. + */ + uint64_t creationToken; }; #define REMOTE_BUNDLE_INFO_INIT { 0 } |