diff --git a/Cargo.lock b/Cargo.lock index 83cf0debbe..f69b160c23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1484,6 +1484,15 @@ dependencies = [ "tempfile", ] +[[package]] +name = "git-refspec" +version = "0.0.0" +dependencies = [ + "bstr", + "git-testtools", + "thiserror", +] + [[package]] name = "git-repository" version = "0.20.0" diff --git a/Cargo.toml b/Cargo.toml index 145aebfa15..0b55bfb642 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -162,6 +162,7 @@ members = [ "git-lock", "git-attributes", "git-pathspec", + "git-refspec", "git-path", "git-repository", "gitoxide-core", diff --git a/git-refspec/Cargo.toml b/git-refspec/Cargo.toml new file mode 100644 index 0000000000..0647cfe5f2 --- /dev/null +++ b/git-refspec/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "git-refspec" +version = "0.0.0" +repository = "https://github.com/Byron/gitoxide" +license = "MIT/Apache-2.0" +description = "A WIP crate of the gitoxide project for parsing and representing refspecs" +authors = ["Sebastian Thiel "] +edition = "2018" + +[lib] +doctest = false + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +bstr = { version = "0.2.13", default-features = false, features = ["std"]} +thiserror = "1.0.26" + +[dev-dependencies] +git-testtools = { path = "../tests/tools" } diff --git a/git-refspec/src/lib.rs b/git-refspec/src/lib.rs new file mode 100644 index 0000000000..ff723740fa --- /dev/null +++ b/git-refspec/src/lib.rs @@ -0,0 +1,3 @@ +//! Parse [ref specs]() and represent them. +#![forbid(unsafe_code, rust_2018_idioms)] +#![deny(missing_docs)] diff --git a/git-refspec/tests/refspec.rs b/git-refspec/tests/refspec.rs new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/git-refspec/tests/refspec.rs @@ -0,0 +1 @@ +