pub struct GitRev { /* private fields */ }Expand description
Git-revision SourceTree: reads keys/contents from a git revision via
git show <rev>:<path> — the fix path for #1224’s baseline-diff bug
(brink ide effects-diff --rev reading nothing because the old
closure-only seam couldn’t enumerate).
git runs with repo_dir as its working directory. root (a path
relative to repo_dir, . for the whole repo) is stored at
construction for the same reason RealFs stores its root: neither list
nor read takes a root parameter (issue #1371), so both must already
know how to turn a root-relative key back into a repo-relative git
pathspec from self.root alone.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitRev
impl RefUnwindSafe for GitRev
impl Send for GitRev
impl Sync for GitRev
impl Unpin for GitRev
impl UnsafeUnpin for GitRev
impl UnwindSafe for GitRev
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more