Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, and the change is limited to adding the shared .Trash/ ignore pattern while preserving the existing per-user trash rule.
No open issues 🎉
What changed in this PR
Updates the Linux global gitignore template to cover the shared freedesktop.org trash directory layout while preserving the existing per-user trash handling.
Changes:
- Adds
.Trash/to ignore shared trash contents such as.Trash/1000/files/.... - Retains the existing
.Trash-*rule for per-user trash directories.
| File | Description |
|---|---|
| Global/Linux.gitignore | Adds the shared .Trash/ directory ignore pattern alongside the existing Linux trash exclusions. |
Review effort: Lite (adaptive)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to the application or project's homepage
freedesktop.org Trash specification
Reasons for making this change
When a working tree covers the root of a volume, files moved to the shared trash can appear as untracked files. The Linux template already handles the per-user
.Trash-$uidlayout added in #1362. The shared layout stores files under.Trash/$uid/, which the existing rule misses.Verified with
git check-ignorein a fresh repository. Before the change,.Trash/1000/files/examplewas visible. With the new rule, Git ignores that path and still ignores.Trash-1000/files/example. A regular file named.Trashand a path under.Trashcan/remain visible.Links to documentation supporting these rule changes
The Trash specification describes both top-directory layouts and when each is used.
Merge and Approval Steps