From 2251c4f8ea45f1c50336156243ab26e071fa0a14 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 21 Apr 2020 22:40:35 -0500 Subject: [PATCH] asdf --- async-git/Cargo.toml | 2 +- async-git/docs/compatibility.md | 5 +++++ async-git/src/plumbing/repo.rs | 15 +++++++++++++++ async-zlib/src/deflate/deflate.rs | 1 + 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 async-git/docs/compatibility.md diff --git a/async-git/Cargo.toml b/async-git/Cargo.toml index 55ad02e..0b29ed6 100644 --- a/async-git/Cargo.toml +++ b/async-git/Cargo.toml @@ -13,7 +13,7 @@ path = "bin/git.rs" tokio = { version = "0.2.18", default-features = false, features = ["fs", "macros"] } typenum = { version = "1.12.0", default-features = false } structopt = { version = "0.3.13", default-features = false } -anyhow = { version = "1.0.28", default-features = false } +anyhow = { version = "1.0.28" } thiserror = { version = "1.0.15", default-features = false } futures = { version = "0.3.4", default-features = false } sha-1 = { version = "0.8.2", default-features = false } diff --git a/async-git/docs/compatibility.md b/async-git/docs/compatibility.md new file mode 100644 index 0000000..a3e8f17 --- /dev/null +++ b/async-git/docs/compatibility.md @@ -0,0 +1,5 @@ +compatibility +============= + +| feature | status | notes | +|---|---|---| diff --git a/async-git/src/plumbing/repo.rs b/async-git/src/plumbing/repo.rs index 5614ac7..7d0b79d 100644 --- a/async-git/src/plumbing/repo.rs +++ b/async-git/src/plumbing/repo.rs @@ -1,7 +1,22 @@ use std::path::Path; +use std::env; + +use anyhow::Result; pub struct Repository {} impl Repository { pub async fn open(path: impl AsRef) {} } + +pub async fn is_repo(path: impl AsRef) -> Result { + Ok(false) +} + +/// Find the closest repository that the current repository belongs to. +pub async fn find() -> Result> { + let mut cwd = env::current_dir()?; + loop { + } + Ok(None) +} diff --git a/async-zlib/src/deflate/deflate.rs b/async-zlib/src/deflate/deflate.rs index e69de29..8b13789 100644 --- a/async-zlib/src/deflate/deflate.rs +++ b/async-zlib/src/deflate/deflate.rs @@ -0,0 +1 @@ +