Skip to main content

Module hash

Module hash 

Source

Enums§

HashError

Functions§

expand_short_hash
Expand a short hash (typically 8 chars) to a full 40-char hash by prefix-matching against a list of candidates.
is_valid_hex_hash
Check if a string is a valid 40-character lowercase hex hash.
normalize_commit_ref
Strip the GitHub commit URL prefix if present. https://github.com/owner/repo/commit/abc123...abc123...
strip_carriage_returns
Strip carriage returns from a string.