git_info2 0.1.2

Extracts git repository information.
Documentation
use super::*;

#[test]
fn git_info_new() {
    let git_info = GitInfo::new();

    assert!(git_info.user_name.is_none());
    assert!(git_info.user_email.is_none());
    assert!(git_info.dirty.is_none());
    assert!(git_info.current_branch.is_none());
    assert!(git_info.branches.is_none());
    assert!(git_info.head.last_commit_hash.is_none());
    assert!(git_info.head.last_commit_hash_short.is_none());
    assert!(git_info.config.is_none());
}

#[test]
fn head_new() {
    let head = Head::new();

    assert!(head.last_commit_hash.is_none());
    assert!(head.last_commit_hash_short.is_none());
}