Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jch #2105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Jch #2105
Changes from 1 commit
fb78702becacd22446e8f6c8ee881e77bf0117addcb2df0c0a5f683f98521d628402bc7d4e4d5489810f1732ddaf04368331c5b4b8afd0ee3cb155abc0c4e182d283cdbafaff2da08f2bed4d80bfac141f4bb6324042f03ab28bc827a1c1fc0a10265ca4de427164f7ecbb58e9d0482d06d65817c661678eded2f9a2c5b08977bcf1fe066ca4a3b8c44cbc97e0e970d3ec42f3931847ae6e6315ac90e9fda2d1993c58a503f5e8d2ec282c13740325ae0f75701429902be71274f68a40c4ac5fafcae55a9ddf78dbc529168c4368df1ffe74999bed8d9b67c344425c435e6cf9ca51c2d8fa5e62c99f26cd18caa1fbed49346be1b315971705b107faff12b908f346e1ce4ffbd5215bb85640c877be004696e574204bc97371cf160f0176fbddedb0e2f42bd7c65c75b5212635515fd3aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
The hash format IDs are used for two different things across the reftable codebase: - They are used as a 32 bit unsigned integer when reading and writing the header in order to identify the hash function. - They are used internally to identify which hash function is in use. When one only considers the second usecase one might think that one can easily change the representation of those hash IDs. But because those IDs end up in the reftable header and footer on disk it is important that those never change. Create separate constants `REFTABLE_FORMAT_ID_*` and use them in contexts where we read or write reftable headers. This serves multiple purposes: - It allows us to more easily discern cases where we actually use those constants for the on-disk format. - It detangles us from the same constants that are defined in libgit.a, which is another required step to convert the reftable library to become standalone. - It makes the next step easier where we stop using `GIT_*_FORMAT_ID` constants in favor of a custom enum. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Taylor Blau <[email protected]>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing