summaryrefslogtreecommitdiff
path: root/doc/bugs/Feature_request:_Flag_to_make_git_annex_add_not_ignore_dotfiles.mdwn
blob: 686bf18871ac4e596ebef4bad78460e834c607ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
When using git annex as part of an automated backup system, it's sometimes important that we archive all files, including dotfiles.

AFAICT there's no way to tell git annex add to add all dotfiles in a given directory; the only way to do it is to list every dotfile individually.  (git annex add --force doesn't seem to do it.)

This can be worked around with find and xargs, but this is more work than it should be, I think.

It might also be nice if git annex add displayed a warning when adding a directory with dotfiles; something like "Warning, N files ignored; pass --whatever to add them."

> [[!commit 34abd7bca80a8cc012f92d64116014449b1b2392]] explains
> the rationalle for dotfiles to be skipped. Such as it was. 
> 
> I don't think it makes sense for --force to be the flag to override
> this, because you may want to add dotfiles, but not .gitignored
> files. So, made a new --include-dotfiles option. [[done]] --[[Joey]]