Skip to content

Commit

Permalink
adapt to changes in gix-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Dec 22, 2024
1 parent d90412b commit 329a734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gitoxide-core/src/repository/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pub(crate) mod function {
}

match disk_kind {
Kind::NonFile => {
Kind::Untrackable => {
if debug {
writeln!(err, "DBG: skipped non-file at '{}'", entry.rela_path).ok();
}
Expand Down Expand Up @@ -265,7 +265,7 @@ pub(crate) mod function {
"WOULD remove"
},
suffix = match disk_kind {
Kind::NonFile => unreachable!("always skipped earlier"),
Kind::Untrackable => unreachable!("always skipped earlier"),
Kind::Directory if entry.property == Some(gix::dir::entry::Property::EmptyDirectory) => {
" empty"
}
Expand Down
6 changes: 3 additions & 3 deletions gix-status/src/index_as_worktree_with_renames/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ pub(super) mod function {
impl<T, U> gix_dir::walk::Delegate for Delegate<'_, '_, T, U> {
fn emit(&mut self, entry: EntryRef<'_>, collapsed_directory_status: Option<Status>) -> Action {
// Status never shows untracked non-files
if entry.disk_kind != Some(gix_dir::entry::Kind::NonFile) {
if entry.disk_kind != Some(gix_dir::entry::Kind::Untrackable) {
let entry = entry.to_owned();
self.tx.send(Event::DirEntry(entry, collapsed_directory_status)).ok();
}
Expand Down Expand Up @@ -469,7 +469,7 @@ pub(super) mod function {
ModificationOrDirwalkEntry::Modification(c) => c.entry.mode.to_tree_entry_mode(),
ModificationOrDirwalkEntry::DirwalkEntry { entry, .. } => entry.disk_kind.map(|kind| {
match kind {
Kind::NonFile => {
Kind::Untrackable => {
// Trees are never tracked for rewrites, so we 'pretend'.
gix_object::tree::EntryKind::Tree
}
Expand Down Expand Up @@ -507,7 +507,7 @@ pub(super) mod function {
};

Ok(match kind {
Kind::NonFile => {
Kind::Untrackable => {
// Go along with unreadable files, they are passed along without rename tracking.
return Ok(object_hash.null());
}
Expand Down

0 comments on commit 329a734

Please sign in to comment.