[][src]Constant git_sha1::GIT_SHA1_LENGTH

pub const GIT_SHA1_LENGTH: usize = 40;

deprecated

Number of hex-characters in the Git SHA1.

There are half as many bytes in a SHA1.

This value is true for any Git SHA1, but must not necessarily be the number of digits available in the extracted value. Either because Git is not even installed, or because the crate is not compiled from a Git repository and the implementation falls back on a default string to return instead.