SHA1 Utilities
Value
gitr_trim_sha(): character(1). The trimmed sha.
If sha is not a SHA1 hash, the identical string unchanged.
is_sha(): logical(1). If sha matches the
SHA1 expected pattern.
gitr_current_sha(): character(1). The sha
of the current commit.
Functions
gitr_trim_sha(): trims theSHA-1hash from the default full length to the human-readable short version.is_sha(): determines whether strings to be tested are aSHA1hash via regular expression ("^[a-f0-9]{5,40}$") match.gitr_current_sha(): gets the current (most recent commit) SHA.