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 4, 2022
1 parent 9f5663e commit f5c6a54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-pack/src/multi_index/access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ impl File {
git_hash::oid::from_bytes_unchecked(&self.data[start..][..self.hash_len])
}

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 f5c6a54

Please sign in to comment.