debugging stuff
This commit is contained in:
parent
6117b40357
commit
fe09e05eda
@ -8,6 +8,7 @@ pub struct GitGrabber {
|
|||||||
|
|
||||||
impl GitGrabber {
|
impl GitGrabber {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
|
println!("{:?}", current_dir().unwrap());
|
||||||
GitGrabber {
|
GitGrabber {
|
||||||
repo: None,
|
repo: None,
|
||||||
dir: current_dir().unwrap(),
|
dir: current_dir().unwrap(),
|
||||||
|
15
src/main.rs
15
src/main.rs
@ -13,15 +13,12 @@ fn main() {
|
|||||||
|
|
||||||
let mut gg = GitGrabber::new();
|
let mut gg = GitGrabber::new();
|
||||||
gg.get_repo();
|
gg.get_repo();
|
||||||
|
gg.repo
|
||||||
gg.repo.unwrap().revwalk().unwrap().for_each(|x| {
|
.unwrap()
|
||||||
if x.is_ok() {
|
.reflog("head")
|
||||||
println!("{:?}", x.unwrap())
|
.unwrap()
|
||||||
} else {
|
.iter()
|
||||||
println!("No rev")
|
.for_each(|x| println!("{:?}", x.message()));
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return ();
|
return ();
|
||||||
|
|
||||||
// let res_text = transporter.make_request(a).unwrap().text().unwrap();
|
// let res_text = transporter.make_request(a).unwrap().text().unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user