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
use last_git_commit::LastGitCommit;

/**
 * Author Tests
 */

#[test]
fn author_name() {

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

    assert!(name.is_some());

}

#[test]
fn author_email() {

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

    assert!(email.is_some());

}