History

fix build (#293)

Sebastian Thiel committed 4 years ago

Commit d89a5871 parent 3baeab41 file · +1 −0Browse files

Unified · Split

git-repository/src/repository.rs+1−0
@@ -19,6 +19,7 @@ mod access { · 18 unmodified lines
1919 /// Load the index file of this repository's workspace, if present.
2020 ///
2121 /// 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")]
2223 pub fn load_index(&self) -> Option<Result<git_index::File, git_index::file::init::Error>> {
2324 // TODO: choose better/correct options
2425 let opts = git_index::decode::Options {