Skip to content

Commit

Permalink
Sketch for abbreviated method lookup (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Feb 11, 2022
1 parent 566ff8a commit ea77051
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-pack/src/multi_index/access.rs
Expand Up @@ -66,6 +66,11 @@ impl File {
git_hash::oid::from_bytes_unchecked(&self.data[start..][..self.hash_len])
}

/// TODO
pub fn lookup_abbrev(&self, _id: impl AsRef<git_hash::oid>, _hex_len: usize) -> Option<EntryIndex> {
todo!()
}

/// Find the index ranging from 0 to [File::num_objects()] that belongs to data associated with `id`, or `None` if it wasn't found.
///
/// Use this index for finding additional information via [`File::pack_id_and_pack_offset_at_index()`].
Expand Down

0 comments on commit ea77051

Please sign in to comment.