pub struct PointerEntry {
pub oid: Oid,
pub size: u64,
pub path: Option<PathBuf>,
pub paths: Vec<PathBuf>,
pub canonical: bool,
pub extensions: Vec<Extension>,
}Expand description
One LFS pointer discovered by the scanner.
Fields§
§oid: OidLFS object OID (the oid sha256:... field of the pointer file).
size: u64Object size in bytes (per the pointer’s size field).
path: Option<PathBuf>First working-tree path the pointer was found at. A single LFS object can appear under many paths in history; we keep the first. Useful for progress display (“downloading foo/bar.bin”); not the authoritative source — caller should not rely on it for routing.
paths: Vec<PathBuf>Every working-tree path the pointer was seen at (across history
and refs). Callers that filter by path (--include/--exclude)
must check this set rather than just path, otherwise an LFS
OID shared between two paths gets filtered out whenever the
scanner happens to dedup down to the wrong one. Always
non-empty when path is Some.
canonical: booltrue if the pointer’s source bytes were byte-canonical. Used by
git lfs fsck --pointers to flag pointers that parse but don’t
match the canonical encoding.
extensions: Vec<Extension>Pointer extensions in priority-ascending order, mirroring
Pointer::extensions. Empty for plain pointers; non-empty when
the file was committed through a configured lfs.extension.<n>
chain. The materialize/checkout paths replay these in reverse to
reconstruct the working-tree content.
Trait Implementations§
Source§impl Clone for PointerEntry
impl Clone for PointerEntry
Source§fn clone(&self) -> PointerEntry
fn clone(&self) -> PointerEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more