Add initial

This commit is contained in:
2022-11-06 13:46:04 +01:00
parent 4ba0f1b329
commit 235a6a723f
3 changed files with 243 additions and 2 deletions

View File

@@ -1,3 +1,13 @@
fn main() {
println!("Hello, world!");
use git2::Repository;
fn main() -> eyre::Result<()> {
let repo = Repository::open(".")?;
let mut revwalk = repo.revwalk()?;
revwalk.set_sorting(git2::Sort::TIME)?;
for rev in revwalk.enumerate() {
println!("rev: {})", rev.1?.to_string())
}
Ok(())
}