diff options
Diffstat (limited to 'vendor/gix/src/revision/mod.rs')
-rw-r--r-- | vendor/gix/src/revision/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/gix/src/revision/mod.rs b/vendor/gix/src/revision/mod.rs index 4b11a8766..3de528ecd 100644 --- a/vendor/gix/src/revision/mod.rs +++ b/vendor/gix/src/revision/mod.rs @@ -2,6 +2,7 @@ //! //! This module provides utilities to walk graphs of revisions and specify revisions and ranges of revisions. +#[cfg(feature = "revision")] pub use gix_revision as plumbing; /// @@ -9,6 +10,7 @@ pub mod walk; pub use walk::iter::Walk; /// +#[cfg(feature = "revision")] pub mod spec; /// The specification of a revision as parsed from a revision specification like `HEAD@{1}` or `v1.2.3...main`. @@ -17,6 +19,7 @@ pub mod spec; /// See the [official git documentation](https://git-scm.com/docs/git-rev-parse#_specifying_revisions) for reference on how /// to specify revisions and revision ranges. #[derive(Clone, Debug)] +#[cfg(feature = "revision")] pub struct Spec<'repo> { pub(crate) inner: gix_revision::Spec, /// The first name of a reference as seen while parsing a `RevSpec`, for completeness. |