Unified · Split
| @@ -19,6 +19,7 @@ mod access { · 18 unmodified lines | ||
| 19 | 19 | /// Load the index file of this repository's workspace, if present. |
| 20 | 20 | /// |
| 21 | 21 | /// Note that it is loaded into memory each time this method is called, but also is independent of the workspace. |
| 22 | + #[cfg(feature = "git-index")] | |
| 22 | 23 | pub fn load_index(&self) -> Option<Result<git_index::File, git_index::file::init::Error>> { |
| 23 | 24 | // TODO: choose better/correct options |
| 24 | 25 | let opts = git_index::decode::Options { |