author_example/
author_example.rs

1use last_git_commit::LastGitCommit;
2
3fn main() {
4
5    let lgc = LastGitCommit::new().build().unwrap();
6    let name = lgc.author().name().unwrap();
7    let email = lgc.author().email().unwrap();
8
9    println!("Name: {}", name); // "Jon Doe"
10    println!("Email: {}", email); // "jondoe@example.com"
11
12}