Skip to content

Commit

Permalink
Slightly improve docs of entry::Mode::change_to_match_fs()
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jan 15, 2025
1 parent e4fb21e commit 18b2a97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gix-index/src/entry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use bitflags::bitflags;

bitflags! {
/// The kind of file of an entry.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Ord, PartialOrd)]
pub struct Mode: u32 {
/// directory (only used for sparse checkouts), equivalent to a tree, which is _excluded_ from the index via
/// cone-mode.
Expand Down
4 changes: 2 additions & 2 deletions gix-index/src/entry/mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ impl Mode {
/// If there is a type change then we will use whatever information is
/// present on the FS. Specifically if `has_symlinks` is false we will
/// never generate `Change::TypeChange { new_mode: Mode::SYMLINK }`. and
/// iff `executable_bit` is false we will never generate `Change::TypeChange
/// if `executable_bit` is false we will never generate `Change::TypeChange
/// { new_mode: Mode::FILE_EXECUTABLE }` (all files are assumed to be not
/// executable). That measn that unstaging and staging files can be a lossy
/// executable). That means that unstaging and staging files can be a lossy
/// operation on such file systems.
///
/// If a directory replaced a normal file/symlink we assume that the
Expand Down

0 comments on commit 18b2a97

Please sign in to comment.