diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-12-29 16:34:39 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-12-29 16:34:39 +0100 |
commit | 8b38bdd1478baf6fd53b9a8a53eb3a183c59b781 (patch) | |
tree | cd0a417fd84befa98b660310a248f4f5172463bc /src/main.rs | |
parent | c896fcdab70f101a6eaaa4fd6f7f03f9b1324e81 (diff) |
data: adding a small wrapper around libgit2
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.rs b/src/main.rs index ed633e0..c0b0f61 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,20 +14,5 @@ fn main() -> std::io::Result<()> { // .bind("127.0.0.1:8080")? // .run()?; - let r = repo::Repo::new("./testrepo"); - let mut walker = r.inner.revwalk().unwrap(); - walker.push_head().unwrap(); - dbg!(walker - .into_iter() - .map(|oid| { - let oid = oid.unwrap(); - r.inner - .find_commit(oid) - .unwrap() - .message() - .unwrap() - .to_owned() - }) - .collect::<Vec<_>>()); Ok(()) } |