pub struct GitRemote;Expand description
git ls-remote 기반의 실제 구현.
Trait Implementations§
Source§impl GithubFacts for GitRemote
impl GithubFacts for GitRemote
Source§fn resolve_ref(&self, owner_repo: &str, git_ref: &str) -> Result<Option<String>>
fn resolve_ref(&self, owner_repo: &str, git_ref: &str) -> Result<Option<String>>
owner/repo의 git_ref(태그/브랜치)가 현재 가리키는 커밋 SHA.
참조가 존재하지 않으면 Ok(None).Source§fn commit_reachable(&self, owner_repo: &str, sha: &str) -> Result<Option<bool>>
fn commit_reachable(&self, owner_repo: &str, sha: &str) -> Result<Option<bool>>
커밋이 저장소의 정식 히스토리에서 도달 가능한가 (R5 임포스터 커밋 판정).
Ok(None) = 판정 불가(미지원) — 규칙은 조용히 건너뛴다.Auto Trait Implementations§
impl Freeze for GitRemote
impl RefUnwindSafe for GitRemote
impl Send for GitRemote
impl Sync for GitRemote
impl Unpin for GitRemote
impl UnsafeUnpin for GitRemote
impl UnwindSafe for GitRemote
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