Skip to content

Commit 18b2a97

Browse files
committed
Slightly improve docs of entry::Mode::change_to_match_fs()
1 parent e4fb21e commit 18b2a97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gix-index/src/entry/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use bitflags::bitflags;
3434

3535
bitflags! {
3636
/// The kind of file of an entry.
37-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
37+
#[derive(Copy, Clone, Debug, PartialEq, Eq, Ord, PartialOrd)]
3838
pub struct Mode: u32 {
3939
/// directory (only used for sparse checkouts), equivalent to a tree, which is _excluded_ from the index via
4040
/// cone-mode.

gix-index/src/entry/mode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ impl Mode {
2828
/// If there is a type change then we will use whatever information is
2929
/// present on the FS. Specifically if `has_symlinks` is false we will
3030
/// never generate `Change::TypeChange { new_mode: Mode::SYMLINK }`. and
31-
/// iff `executable_bit` is false we will never generate `Change::TypeChange
31+
/// if `executable_bit` is false we will never generate `Change::TypeChange
3232
/// { new_mode: Mode::FILE_EXECUTABLE }` (all files are assumed to be not
33-
/// executable). That measn that unstaging and staging files can be a lossy
33+
/// executable). That means that unstaging and staging files can be a lossy
3434
/// operation on such file systems.
3535
///
3636
/// If a directory replaced a normal file/symlink we assume that the

0 commit comments

Comments
 (0)