initial commit
This commit is contained in:
+16
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user