Do not list empty directories and directories with only ignored files/subdirectories in unmanaged
output
#3608
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
chezmoi unmanaged
inlcudes empty directories and directories with only ignored files or subdirectories in its output. This makes it harder to tell if there are files left that should be added to chezmoi.For example, the directory
~/.config/dconf
usually only contains a single file,user
, but if I add an ignore entry to chezmoiignorechezmoi unmanaged
still lists.config/dconf
as unmanaged.Describe the solution you'd like
chezmoi unmanaged
should not include these "empty" directories in its output.Describe alternatives you've considered
It is possible to ignore the whole directory, for example,
but in this case, I would not notice if dconf adds another file to its directory that I might want to add to chezmoi.
The text was updated successfully, but these errors were encountered: