diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:41:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:41:41 +0000 |
commit | 10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87 (patch) | |
tree | bdffd5d80c26cf4a7a518281a204be1ace85b4c1 /vendor/gix/src/revision/mod.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg1-9~progress7.99u1. (diff) | |
download | rustc-10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87.tar.xz rustc-10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87.zip |
Merging upstream version 1.70.0+dfsg2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gix/src/revision/mod.rs')
-rw-r--r-- | vendor/gix/src/revision/mod.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/gix/src/revision/mod.rs b/vendor/gix/src/revision/mod.rs new file mode 100644 index 000000000..4b11a8766 --- /dev/null +++ b/vendor/gix/src/revision/mod.rs @@ -0,0 +1,27 @@ +//! Revisions is the generalized notion of a commit. +//! +//! This module provides utilities to walk graphs of revisions and specify revisions and ranges of revisions. + +pub use gix_revision as plumbing; + +/// +pub mod walk; +pub use walk::iter::Walk; + +/// +pub mod spec; + +/// The specification of a revision as parsed from a revision specification like `HEAD@{1}` or `v1.2.3...main`. +/// It's typically created by [`repo.rev_parse()`][crate::Repository::rev_parse()]. +/// +/// 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)] +pub struct Spec<'repo> { + pub(crate) inner: gix_revision::Spec, + /// The first name of a reference as seen while parsing a `RevSpec`, for completeness. + pub(crate) first_ref: Option<gix_ref::Reference>, + /// The second name of a reference as seen while parsing a `RevSpec`, for completeness. + pub(crate) second_ref: Option<gix_ref::Reference>, + pub(crate) repo: &'repo crate::Repository, +} |