gix_refspec/
lib.rs

1//! Parse git ref-specs and represent them.
2#![deny(missing_docs, rust_2018_idioms)]
3#![forbid(unsafe_code)]
4
5///
6pub mod parse;
7pub use parse::function::parse;
8
9///
10pub mod instruction;
11
12/// A refspec with references to the memory it was parsed from.
13#[derive(Eq, Copy, Clone, Debug)]
14pub struct RefSpecRef<'a> {
15    mode: types::Mode,
16    op: parse::Operation,
17    src: Option<&'a bstr::BStr>,
18    dst: Option<&'a bstr::BStr>,
19}
20
21/// An owned refspec.
22#[derive(Eq, Clone, Debug)]
23pub struct RefSpec {
24    mode: types::Mode,
25    op: parse::Operation,
26    src: Option<bstr::BString>,
27    dst: Option<bstr::BString>,
28}
29
30mod spec;
31
32mod write;
33
34///
35pub mod match_group;
36pub use match_group::types::MatchGroup;
37
38mod types;
39pub use types::Instruction;