no implicit dotfiles in add
Dotfiles, and files inside dotdirs are not added by "git annex add" unless the dotfile or directory is explicitly listed. So "git annex add ." will add all untracked files in the current directory except for those in dotdirs. One reason for this is that it will make git-annex more usable with vcsh, where you don't want "vcsh big annex add" to check in all the dotfiles that are already versioned in other repositories. (If you're using vcsh for repos that contain non-dotfiles, this won't help, and you'll need to .gitignore such things, but this will cover the common case.) A more general reason why this seems like a good idea is the same reason ls ignores dotfiles, just the unix convention that they are cruft that is kept out of the way most of the time. All the other git-annex commands still do deal with any dotfiles that do get into the annex. This seemed right because if I've gone to the trouble to add a dotfile, I will want "git annex get ." to get it along with everything else.
This commit is contained in:
parent
ab8fa0d205
commit
34abd7bca8
4 changed files with 27 additions and 4 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -4,6 +4,10 @@ git-annex (3.20111232) UNRELEASED; urgency=low
|
|||
used to provide parameters to whichever of wget or curl git-annex uses
|
||||
(depends on which is available, but most of their important options
|
||||
suitable for use here are the same).
|
||||
* Dotfiles, and files inside dotdirs are not added by "git annex add"
|
||||
unless the dotfile or directory is explicitly listed. So "git annex add ."
|
||||
will add all untracked files in the current directory except for those in
|
||||
dotdirs.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Mon, 02 Jan 2012 14:19:19 -0400
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue