From 5f89a9558787c4208e95277efd0379d630216433 Mon Sep 17 00:00:00 2001 From: Hubert Date: Thu, 15 Jul 2021 07:52:09 +0200 Subject: [PATCH] git init --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 0265531..1f6a68d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -169,6 +169,10 @@ async fn git_main( Ok(tree) => tree, Err(e) => panic!("failed to get tree: {}", e) }; + for entry in tree.iter() { + println!("{:?}", entry.name()); + println!("{:?}", entry.kind()); + } GitMainTemplate { repo, browse : browse, root : path, user_opt : Some(user)} } //#[get("/git/{owner}/{repo}.git/{path:.*}")]