summaryrefslogtreecommitdiffstats
path: root/vendor/gix-refspec/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-refspec/src/lib.rs')
-rw-r--r--vendor/gix-refspec/src/lib.rs39
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/gix-refspec/src/lib.rs b/vendor/gix-refspec/src/lib.rs
new file mode 100644
index 000000000..54d5f3057
--- /dev/null
+++ b/vendor/gix-refspec/src/lib.rs
@@ -0,0 +1,39 @@
+//! Parse git ref-specs and represent them.
+#![deny(missing_docs, rust_2018_idioms)]
+#![forbid(unsafe_code)]
+
+///
+pub mod parse;
+pub use parse::function::parse;
+
+///
+pub mod instruction;
+
+/// A refspec with references to the memory it was parsed from.
+#[derive(Eq, Copy, Clone, Debug)]
+pub struct RefSpecRef<'a> {
+ mode: types::Mode,
+ op: parse::Operation,
+ src: Option<&'a bstr::BStr>,
+ dst: Option<&'a bstr::BStr>,
+}
+
+/// An owned refspec.
+#[derive(Eq, Clone, Debug)]
+pub struct RefSpec {
+ mode: types::Mode,
+ op: parse::Operation,
+ src: Option<bstr::BString>,
+ dst: Option<bstr::BString>,
+}
+
+mod spec;
+
+mod write;
+
+///
+pub mod match_group;
+pub use match_group::types::MatchGroup;
+
+mod types;
+pub use types::Instruction;