feat: default to current folder
This commit is contained in:
parent
ccaa41703d
commit
719ab13b2a
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ use chrono::DateTime;
|
||||||
mod tui;
|
mod tui;
|
||||||
|
|
||||||
fn main() {
|
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();
|
let mut rev = repo.revwalk().unwrap();
|
||||||
rev.set_sorting(git2::Sort::TOPOLOGICAL).unwrap();
|
rev.set_sorting(git2::Sort::TOPOLOGICAL).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue