Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: consider non-files as pruned officially. #1730

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

fix!: consider non-files as pruned officially. #1730

wants to merge 2 commits into from

Conversation

Byron
Copy link
Member

@Byron Byron commented Dec 19, 2024

Fixes #1729.

Tasks

  • experiment with NonFile + Pruned
  • change it to NoneFile + default status handling

I think the learning is that NonFile is a file type downstream has to deal with officially, just pruning these leads to unexpected results.

Git will officially say that it won't diff or read or add non-files, and to do that, such entries must not be pruned, but they must be part of the normal entry handling that should always or most of the time reject non-files.

Previously, these were silently ignored.
This also brings back `entry::Kind::from(std::fs::FileType)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gix clean panics if a tracked regular file is replaced with a FIFO
1 participant