[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#959506: git-annex: `git annex add` sometimes treats non-dotfiles in dotdirs as dotfiles



Hello,

On Sun 03 May 2020 at 08:57am +02, Marco Ricci wrote:

> I use git to keep $HOME in version control, and git-annex to version
> sensitive files whose contents I do not want kept in git, e.g. `.netrc`. My
> repository thus contains several dotfiles and "dotdirs". The rules for which
> files are sensitive and which aren't aren't easily described as a simple
> matching expression, so I leave `annex.largefiles` unset. I expect to be
> able to specifically use `git add` to add files to git, and `git annex add`
> to add files to the annex.
>
> After upgrading the repository format to v8, `git annex add` sometimes
> treats ordinary files stored in a dotdir the same as it treats dotfiles –
> adding them to native git and saying they are non-large files, even when
> `annex.largefiles` is not configured. I am aware that dotfiles are forced to
> git by default unless I set `annex.dotfiles`, but I do not expect this to
> happen with non-dotfiles, even if they are located within dotdirs.

So what you are suggesting is that git-annex should treat all files
within dotdirs as if they were themselves dotfiles?

-- 
Sean Whitton


Reply to: