Add initial
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -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(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user