pub fn index_blob(dir: &Path, rel_path: &str) -> Option<String>
The staged (index) version of rel_path (git show :path), trailing newline preserved. None when the file is not in the index.
rel_path
git show :path
None