unisonweb/unison

Compute minimum unique hash prefix length for branches

Open

#843 opened on Oct 4, 2019

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Haskell (304 forks)batch import
codebase-manager / ucmgood first issuehelp wanted

Repository metrics

Stars
 (6,624 stars)
PR merge metrics
 (Avg merge 12d 19h) (6 merged PRs in 30d)

Description

Related to #842, but can be done out of order.

Add a member like:

branchHashLength :: Int

which should return the smallest number of base32hex characters necessary to uniquely identify any known branch hash by prefix, in some way that doesn't do O(n) work on every call.

Contributor guide