LastGitCommit-rs
A simple wrapper arround git2-rs
to easily get info about the last commit. Useful when you want to show the last commit message or the current git hash.
Simple Git Hash Example
use LastGitCommit;
let lgc = new.build.unwrap;
let long = lgc.id.long;
let short = lgc.id.short;
let range = lgc.id.range.unwrap;
println!; // "c4f94258c12b8905f3d57f879ae1171ce367cd29"
println!; // "c4f9425"
println!; // "c4f"