MCPcopy Create free account
hub / github.com/douglance/devsql / head_commit

Method head_commit

crates/vcsql/src/git/repository.rs:75–79  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

73 }
74
75 pub fn head_commit(&self) -> Result<Commit<'_>> {
76 let head = self.head()?;
77 let commit = head.peel_to_commit()?;
78 Ok(commit)
79 }
80
81 pub fn walk_commits(&self) -> Result<impl Iterator<Item = Result<Commit<'_>>>> {
82 let mut revwalk = self.repo.revwalk()?;

Callers

nothing calls this directly

Calls 1

headMethod · 0.80

Tested by

no test coverage detected