Skip to content

Commit

Permalink
adapt to changes in gix-status
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jan 15, 2025
1 parent 4138982 commit 18273bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gitoxide-core/src/repository/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ fn change_to_char(change: &Change<(), gix::submodule::Status>) -> u8 {
// Known status letters: https://github.com/git/git/blob/6807fcfedab84bc8cd0fbf721bc13c4e68cda9ae/diff.h#L613
match change {
Change::Removed => b'D',
Change::Type => b'T',
Change::Type { .. } => b'T',
Change::SubmoduleModification(_) => b'M',
Change::Modification {
executable_bit_changed, ..
Expand Down
2 changes: 1 addition & 1 deletion gix/src/status/index_worktree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ pub mod iter {
EntryStatus::Conflict(_) => Conflict,
EntryStatus::Change(change) => match change {
Change::Removed => Removed,
Change::Type => TypeChange,
Change::Type { .. } => TypeChange,
Change::Modification { .. } | Change::SubmoduleModification(_) => Modified,
},
EntryStatus::NeedsUpdate(_) => return None,
Expand Down

0 comments on commit 18273bd

Please sign in to comment.