get_commit_sha

Function get_commit_sha 

Source
pub const fn get_commit_sha() -> &'static str
Expand description

Returns the Git short SHA for the current commit.

ยงExamples

 
use rssn::constant::get_commit_sha;

let sha = get_commit_sha();

assert!(!sha.is_empty());