Skip to content

Commit

Permalink
Merge pull request #1773 from GitoxideLabs/improvements
Browse files Browse the repository at this point in the history
various improvements
  • Loading branch information
Byron authored Jan 16, 2025
2 parents 4c8200f + fc2021f commit c2d1a5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions gix-index/src/entry/mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ impl Mode {
Mode::COMMIT
} else if executable_bit && stat.is_executable() {
Mode::FILE_EXECUTABLE
} else if has_symlinks && stat.is_symlink() {
Mode::SYMLINK
} else {
Mode::FILE
};
Expand Down
8 changes: 4 additions & 4 deletions gix-status/tests/status/index_as_worktree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ fn refresh() {
BStr::new(b"empty"),
3,
Change::Type {
worktree_mode: entry::Mode::FILE
worktree_mode: entry::Mode::SYMLINK
}
.into()
),
Expand Down Expand Up @@ -651,7 +651,7 @@ fn refresh() {
BStr::new("empty"),
3,
Change::Type {
worktree_mode: entry::Mode::FILE
worktree_mode: entry::Mode::SYMLINK
}
.into()
),
Expand Down Expand Up @@ -707,7 +707,7 @@ fn modified() {
BStr::new(b"empty"),
3,
Change::Type {
worktree_mode: entry::Mode::FILE,
worktree_mode: entry::Mode::SYMLINK,
}
.into(),
),
Expand Down Expand Up @@ -738,7 +738,7 @@ fn modified() {
BStr::new("empty"),
3,
Change::Type {
worktree_mode: entry::Mode::FILE,
worktree_mode: entry::Mode::SYMLINK,
}
.into(),
),
Expand Down

0 comments on commit c2d1a5d

Please sign in to comment.