Skip to content

Commit 77a9d42

Browse files
author
Sidney Douw
committed
updated docs
1 parent 66a675f commit 77a9d42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: git-index/src/access.rs

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ impl State {
102102
}
103103

104104
/// Returns a boolean value indicating whether the index is sparse or not
105+
///
106+
/// An index is set to be sparse either if it contains [Mode::DIR][Entry::Mode::DIR] entries or if the `sdir` extension is present
105107
pub fn is_sparse(&self) -> bool {
106108
self.is_sparse
107109
}

0 commit comments

Comments
 (0)