Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Nov 4, 2022
1 parent 3de621e commit 49b539b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-index/src/access/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Options {
(true, true, true) => Mode::IncludeDirectoriesStoreIncludedEntriesAndExcludedDirs,
(true, true, false) => Mode::IncludeDirectoriesStoreAllEntriesSkipUnmatched,
(true, false, _) => Mode::IncludeByIgnorePatternStoreAllEntriesSkipUnmatched,
(false, _, _) => Mode::IncludeAllEntries,
(false, _, _) => Mode::Disabled,
}
}
}
Expand All @@ -54,6 +54,6 @@ pub enum Mode {
IncludeDirectoriesStoreAllEntriesSkipUnmatched,
/// index with all file entries and skip-worktree flags for exclusion, `ignore` patterns to include entries in `.git/info/sparse-checkout` file.
IncludeByIgnorePatternStoreAllEntriesSkipUnmatched,
/// index with all entries, non is excluded, `.git/info/sparse-checkout` file is not considered.
IncludeAllEntries,
/// index with all entries, non is excluded, `.git/info/sparse-checkout` file is not considered, a regular index.
Disabled,
}

0 comments on commit 49b539b

Please sign in to comment.