From fe09e05edaf4bf22681ceddef095018a977f476b Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Tue, 10 Dec 2024 09:43:13 -0500 Subject: [PATCH] debugging stuff --- src/git_grabber.rs | 1 + src/main.rs | 15 ++++++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/git_grabber.rs b/src/git_grabber.rs index 06f8181..78fe3db 100644 --- a/src/git_grabber.rs +++ b/src/git_grabber.rs @@ -8,6 +8,7 @@ pub struct GitGrabber { impl GitGrabber { pub fn new() -> Self { + println!("{:?}", current_dir().unwrap()); GitGrabber { repo: None, dir: current_dir().unwrap(), diff --git a/src/main.rs b/src/main.rs index 08a7aec..1ca91da 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,15 +13,12 @@ fn main() { let mut gg = GitGrabber::new(); gg.get_repo(); - - gg.repo.unwrap().revwalk().unwrap().for_each(|x| { - if x.is_ok() { - println!("{:?}", x.unwrap()) - } else { - println!("No rev") - } - }); - + gg.repo + .unwrap() + .reflog("head") + .unwrap() + .iter() + .for_each(|x| println!("{:?}", x.message())); return (); // let res_text = transporter.make_request(a).unwrap().text().unwrap();