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
19 /// Load the index file of this repository's workspace, if present.19 /// Load the index file of this repository's workspace, if present.
20 ///20 ///
21 /// Note that it is loaded into memory each time this method is called, but also is independent of the workspace.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 pub fn load_index(&self) -> Option<Result<git_index::File, git_index::file::init::Error>> {23 pub fn load_index(&self) -> Option<Result<git_index::File, git_index::file::init::Error>> {
23 // TODO: choose better/correct options24 // TODO: choose better/correct options
24 let opts = git_index::decode::Options {25 let opts = git_index::decode::Options {