1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::errors::Result; use crate::plumbing::Oid; pub struct Ref { target: Option<Oid>, } impl Ref { pub fn parse(string: impl AsRef<str>) -> Result<Self> { let string = string.as_ref(); if string.starts_with("ref") {} unimplemented!() } }