sha | R Documentation |
SHA1 Utilities
trim_sha(sha)
is_sha(sha)
git_current_sha()
sha |
|
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.
git_current_sha()
: character(1)
. The sha
of the current commit.
trim_sha()
: trims the SHA-1
hash from the default full
length to the human-readable short version.
is_sha()
: determines whether strings to be tested are a SHA1
hash
via regular expression ("^[a-f0-9]{5,40}$"
) match.
git_current_sha()
: gets the current (most recent commit) SHA.
grepl()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.