initial commit

This commit is contained in:
Trevor Bentley
2023-01-07 23:26:57 +01:00
commit 9b64c36b06
4 changed files with 248 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
use git2::{Commit, DiffOptions, ObjectType, Repository, Signature, Time};
use git2::{DiffFormat, Error, Pathspec};
fn run() -> Result<(), Error> {
let path = ".";
let repo = Repository::open(path)?;
let mut revwalk = repo.revwalk()?;
revwalk.set_sorting(git2::Sort::TOPOLOGICAL)?;
revwalk.push_head()?;
Ok(())
}
fn main() {
println!("Hello, world!");
run().expect("run failed");
}