You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a folder with a bunch of subfolders I'd like to ignore. But then deeply nested there is a single file that I'd like to track. However, trying to exclude that file from chezmoiignore. But then I get a bunch of warnings about ignored parents
↓ example folder structure
~/zzz # ← ignore
~/zzz/a # ← ignore
~/zzz/a-child # ← ignore
~/zzz/a/b # ← ignore
~/zzz/a/b-child # ← ignore
~/zzz/a/b/in.txt # ← I only want this file
I'm currently doing this tedious exercise in .chezmoiignore
zzz/* # subfolders in zzz
!zzz/a # ... except for ← subfolder
zzz/a/* # all files in ← subfolder
!zzz/a/b # except for ← subfolder
zzz/a/b/* # all files in ← subfolder
!zzz/a/b/in.txt # except for ← file
Thanks. I’ve edited your comment to properly refer to chezmoiignore instead of gitignore; I personally think that this is a bug, but as it may be an incomplete specification of expectations, enhancement is good enough for now.
@twpayne I’ll probably have time to look at this in a day or two if you don’t get to it before then.
Is your feature request related to a problem? Please describe.
I have a folder with a bunch of subfolders I'd like to ignore. But then deeply nested there is a single file that I'd like to track. However, trying to exclude that file from chezmoiignore. But then I get a bunch of warnings about ignored parents
↓ example folder structure
Describe the solution you'd like
Since per doc
I'd like that to be true also for intermediate subfolders in path
So this should work
but instead I get on
chezmoi add ~/zzz/a/b/in.txt
or this
then the warnings are:
Describe alternatives you've considered
I'm currently doing this tedious exercise in
.chezmoiignore
Additional context
Filing as a follow-up to this discussion #2852 (reply in thread)
The text was updated successfully, but these errors were encountered: