Skip to content

Commit 154b21f

Browse files
authored
Reword "non-files" in documentation comments
This goes along with changing `NonFile` to `Untrackable`.
1 parent 329a734 commit 154b21f

File tree

3 files changed

+4
-4
lines changed
  • gitoxide-core/src/repository
  • gix-dir/tests/dir
  • gix-status/src/index_as_worktree_with_renames

3 files changed

+4
-4
lines changed

gitoxide-core/src/repository/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub(crate) mod function {
190190
match disk_kind {
191191
Kind::Untrackable => {
192192
if debug {
193-
writeln!(err, "DBG: skipped non-file at '{}'", entry.rela_path).ok();
193+
writeln!(err, "DBG: skipped untrackable entry at '{}'", entry.rela_path).ok();
194194
}
195195
continue;
196196
}

gix-dir/tests/dir/walk.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn one_top_level_fifo() {
6969
assert_eq!(
7070
entries,
7171
&[entry("top", Untracked, Untrackable),],
72-
"Non-files are like normal files, but with a different state"
72+
"Untrackable entries are like normal files, but with a different state"
7373
);
7474
}
7575

@@ -107,7 +107,7 @@ fn fifo_in_traversal() {
107107
entry("file", Untracked, File),
108108
entry("top", Untracked, Untrackable),
109109
],
110-
"Non-files only differ by their disk-kind"
110+
"Untrackable entries only differ by their disk-kind"
111111
);
112112
}
113113

gix-status/src/index_as_worktree_with_renames/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ pub(super) mod function {
387387

388388
impl<T, U> gix_dir::walk::Delegate for Delegate<'_, '_, T, U> {
389389
fn emit(&mut self, entry: EntryRef<'_>, collapsed_directory_status: Option<Status>) -> Action {
390-
// Status never shows untracked non-files
390+
// Status never shows untracked entries of untrackable type
391391
if entry.disk_kind != Some(gix_dir::entry::Kind::Untrackable) {
392392
let entry = entry.to_owned();
393393
self.tx.send(Event::DirEntry(entry, collapsed_directory_status)).ok();

0 commit comments

Comments
 (0)