gix-dir v0.28.0
Bug Fixes
-
keep EmptyDirectory when collapsing trees of only empty dirs
When a directory is collapsed during the worktree walk and every collapsed
entry is itself an empty directory, the collapsed directory has no files to
track. Previously theEmptyDirectoryproperty was dropped on collapse, so
such a tree was reported asUntracked-- which madegix statussurface
it (and, via a submodule, report the submodule as modified) even though Git
considers a tree of only empty directories clean.Propagate
EmptyDirectoryto the collapsed directory in that case so callers
that skip empty directories by default (like status) behave like Git.As Deletion mode has its own handling of empty directories; restrict the
EmptyDirectory-on-collapse propagation to status-like walks
(for_deletion.is_none()) so deletion behavior is unchanged.An explicitly requested ignored directory (e.g.
gix status --ignored=collapsed <pathspec>)
must remain observable even when it is empty; tagging its collapse asEmptyDirectory
caused it to be filtered out when empty directories aren't emitted. Restrict the
propagation to untracked collapses, which is the only case #2490 is about.
Commit Statistics
- 10 commits contributed to the release.
- 31 days passed between releases.
- 1 commit was understood as conventional.
- 1 unique issue was worked on: #2490
Commit Details
view details
- #2490
- Keep EmptyDirectory when collapsing trees of only empty dirs (4b38ff1)
- Uncategorized
- Update changelogs prior to release (cb6ec7d)
- Release gix-trace v0.1.21, gix-validate v0.11.3, gix-path v0.12.3, gix-utils v0.3.5, gix-config-value v0.19.0, gix-prompt v0.16.0, gix-sec v0.14.2, gix-url v0.37.0, gix-credentials v0.39.0, safety bump 18 crates (f0ec710)
- Merge pull request #2722 from GitoxideLabs/reasons (c16b5a1)
- Replace lint allowances with expectations (43ff87a)
- Merge pull request #2714 from GitoxideLabs/fix-credentials-parsing (cf3053a)
- Release gix-path v0.12.2, gix-error v0.2.5, gix-utils v0.3.4, gix-date v0.15.6, gix-url v0.36.2, gix-credentials v0.38.2 (27aec47)
- Merge pull request #2673 from ameyypawar/fix/2490-empty-dir-collapse (c31dac2)
- Review (596ab93)
- Merge pull request #2646 from GitoxideLabs/report (1b1541e)