Skip to content

Conversation

heartacker
Copy link
Contributor

@heartacker heartacker commented Jul 16, 2025

  • Add support for optionally including untracked files when discarding all changes in the repository.
  • Add option to include untracked files in discard operation.
  • Add option to include untracked files when discarding all changes.
  • Add include untracked files checkbox to discard view.

@heartacker heartacker changed the title feat: add untracked opt in discard(fix #1586) feat: add include untracked opt on discard (fix #1586) Jul 16, 2025
- Add support for optionally including untracked files when discarding all changes in the repository.
- Add option to include untracked files in discard operation.
- Add option to include untracked files when discarding all changes.
- Add include untracked files checkbox to discard view.
@love-linger
Copy link
Collaborator

这个改法是不正确的。因为git clean -qfdx总是会删除untracked文件(但不会删除带.git文件的目录,也就是detached submodule)

image

一会我提交一下我自己的实现方式

@heartacker heartacker deleted the dev/#1586 branch July 16, 2025 15:28
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.

2 participants