pub fn staged_ids(
index_path: &Path,
hash: Kind,
paths: &[Vec<u8>],
) -> Result<Staged>Expand description
The object ids the index records for paths.
No lock is taken: git replaces the index by renaming a complete file over
it, so a reader sees one version or the other and never a half-written one.
forget_stat locks because it writes.
§Errors
Error::Io when the index exists but cannot be read. An index that does
not exist yet is not an error — nothing is tracked, so every answer is
None.