last-git-commit 0.2.0

Simple wrapper arround git2-rs to get info about the last commit. Useful for when you want to show the git hash in a program.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use last_git_commit::LastGitCommit;

/**
 * Date Tests
 */

#[test]
fn date_timestamp() {

    let lgc = LastGitCommit::new().build().unwrap();
    let timestamp = lgc.timestamp();

    assert!(timestamp > 0);

}