MCPcopy Create free account
hub / github.com/git/git / last_matching_offset

Method last_matching_offset

src/loose.rs:157–164  ·  view source on GitHub ↗
(a: &ObjectID, b: &ObjectID, algop: HashAlgorithm)

Source from the content-addressed store, hash-verified

155 }
156
157 fn last_matching_offset(a: &ObjectID, b: &ObjectID, algop: HashAlgorithm) -> usize {
158 for i in 0..=algop.raw_len() {
159 if a.hash[i] != b.hash[i] {
160 return i;
161 }
162 }
163 algop.raw_len()
164 }
165
166 fn find_short_name_len(
167 &self,

Callers

nothing calls this directly

Calls 1

raw_lenMethod · 0.80

Tested by

no test coverage detected