fix: make ignore's .git_exclude() mirror .git_ignore()#494
Merged
aawsome merged 2 commits intorustic-rs:mainfrom Mar 29, 2026
Merged
fix: make ignore's .git_exclude() mirror .git_ignore()#494aawsome merged 2 commits intorustic-rs:mainfrom
ignore's .git_exclude() mirror .git_ignore()#494aawsome merged 2 commits intorustic-rs:mainfrom
Conversation
apparently, `ignore` crate has its `git_exclude` on by default and the change is essential to make it possible to backup data listed in `.git/info/exclude` files. And it makes the behaviour close to "what would git do".
github-merge-queue bot
pushed a commit
that referenced
this pull request
Apr 5, 2026
## 🤖 New release * `rustic_core`: 0.10.1 -> 0.11.0 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.11.0](rustic_core-v0.10.1...rustic_core-v0.11.0) - 2026-04-05 ### Added - Optimize hardlink creation in restore ([#495](#495)) - add exclude-if-xattr option ([#491](#491)) ### Fixed - make `ignore`'s `.git_exclude()` mirror `.git_ignore()` ([#494](#494)) ### Other - update dependencies ([#496](#496)) - preserve hardlinks on restore ([#492](#492)) - use general tree modifier in `repair snapshots` ([#463](#463)) - [**breaking**] Optimize file streaming ([#489](#489)) - [**breaking**] use Cow to avoid OsString allocations ([#487](#487)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: rustic-release-plz[bot] <182542030+rustic-release-plz[bot]@users.noreply.github.com>
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.
apparently,
ignorecrate has itsgit_excludeon by default and the change is essential to make it possible to backup data listed in.git/info/excludefiles.And it makes the behaviour close to "what would git do".
And it should close rustic-rs/rustic#1261