about summary refs log tree commit diff
path: root/.hgignore
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-02T11·32+0100
committerflokli <flokli@flokli.de>2023-01-03T13·03+0000
commit8e2b1de3d5e687eab1cc36117b12d68553588562 (patch)
treea3c8bb4b03a58c8ba0b2a2cdf77ae694c263d822 /.hgignore
parent2df642231cfa2ea59869a5112201e3f38cfeb271 (diff)
feat(tvix/store/nixpath): DIGEST_SIZE public, use more consts r/5572
Rename PATH_HASH_SIZE to DIGEST_SIZE.

It's a digest, not hash (we don't necessarily have the internal hash
state anymore), and the fact it's about (Nix)Paths is already visible
from the module name.

Also expose ENCODED_DIGEST_SIZE, so we don't need to do the calculation
inside from_string() method, and it becomes more clear this is a
constant.

Change-Id: I0e7577dd7a6e503039037b986313b214e995d826
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7725
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: jrhahn <mail.jhahn@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to '.hgignore')
0 files changed, 0 insertions, 0 deletions