feat: default to current folder

This commit is contained in:
əlemi 2023-11-21 03:41:16 +01:00
parent ccaa41703d
commit 719ab13b2a
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -6,7 +6,7 @@ use chrono::DateTime;
mod tui;
fn main() {
let repo = Repository::open(std::env::args().nth(1).unwrap()).unwrap();
let repo = Repository::open(std::env::args().nth(1).unwrap_or(".".to_string())).unwrap();
let mut rev = repo.revwalk().unwrap();
rev.set_sorting(git2::Sort::TOPOLOGICAL).unwrap();