MCPcopy Index your code
hub / github.com/emwalker/digraph / commit_oid

Method commit_oid

backend/src/git/core/mod.rs:97–101  ·  view source on GitHub ↗
(&self, _timespec: &Timespec)

Source from the content-addressed store, hash-verified

95 }
96
97 pub fn commit_oid(&self, _timespec: &Timespec) -> Result<git2::Oid> {
98 let reference = self.inner.find_reference("HEAD")?;
99 let commit = reference.peel_to_commit()?;
100 Ok(commit.id())
101 }
102
103 pub fn duplicate(&self) -> Result<Self> {
104 Self::open(self.path.to_owned())

Callers 1

ensureMethod · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected