diff options
author | Joey Hess <joey@kitenet.net> | 2014-03-26 14:52:07 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-03-26 14:52:07 -0400 |
commit | 0937413b678c9c4d04d0d69bf9ba673a8a0f7ab3 (patch) | |
tree | d2660d274d534a0ca9eacf5d9b905527b86b0e4e /doc | |
parent | 19bf29a0bce26eb60dcf2480967e0a3088afac67 (diff) |
add --include-dotfiles: New option, perhaps useful for backups.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/Feature_request:_Flag_to_make_git_annex_add_not_ignore_dotfiles.mdwn | 7 | ||||
-rw-r--r-- | doc/git-annex.mdwn | 12 |
2 files changed, 15 insertions, 4 deletions
diff --git a/doc/bugs/Feature_request:_Flag_to_make_git_annex_add_not_ignore_dotfiles.mdwn b/doc/bugs/Feature_request:_Flag_to_make_git_annex_add_not_ignore_dotfiles.mdwn index f82d8835f..686bf1887 100644 --- a/doc/bugs/Feature_request:_Flag_to_make_git_annex_add_not_ignore_dotfiles.mdwn +++ b/doc/bugs/Feature_request:_Flag_to_make_git_annex_add_not_ignore_dotfiles.mdwn @@ -5,3 +5,10 @@ AFAICT there's no way to tell git annex add to add all dotfiles in a given direc 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]] diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn index a1005cbc8..6e9f39826 100644 --- a/doc/git-annex.mdwn +++ b/doc/git-annex.mdwn @@ -62,10 +62,14 @@ subdirectories). * `add [path ...]` - Adds files in the path to the annex. Files that are already checked into - git, or that git has been configured to ignore will be silently skipped. - (Use `--force` to add ignored files.) Dotfiles are skipped unless explicitly - listed. + Adds files in the path to the annex. If no path is specified, adds + files from the current directory and below. + + Files that are already checked into git, or that git has been configured + to ignore will be silently skipped. (Use `--force` to add ignored files.) + + Dotfiles are skipped unless explicitly listed, or the --include-dotfiles + option is used. * `get [path ...]` |