Skip to main content

SHORT_COMMIT_LEN

Constant SHORT_COMMIT_LEN 

Source
pub const SHORT_COMMIT_LEN: usize = 7;
Expand description

Default short-commit length used across error messages, log output, and any place that needs to truncate a full SHA for human display. Matches git’s --short default (7) — and the ShortCommit template var populated by [git::detect_git_info] (which delegates to git rev-parse --short).