Hi, This is not an issue, more some questions related to my 'legacy' git-annex worklfow which is disturbed with v7 repos.
The context
I've got an old repo (initially v5) which has both plain git txt files and annexed binary files. The plain git files don't go through git-annex, only git. THis way, I have the classic git history of the txt files, versionning, plus the management of the (big) binaries via git-annex. The best of the two worlds.
The pb
I converted it to v7, and it is now not possible to add plain git files anymore though 'git add', they are managed by git-annex automatically, probably because of the smudge filter added in .git/info/attributes. I understand (and like) this new behaviour, because it avoids adding big binary files though 'git add' by accident. But in this repo, I would like to come back to the old behaviour.
What I did
I disabled git-annex smudge filter in the file .git/info/attributes, which is now:
#* filter=annex
.* !filter
Question at 100000$
Is this safe ?
Question 2
Is there an other way of achieving this (adding plain git files outside git-annex) ?
annex.largefiles
is not set, or ifannex.gitaddtoannex
is set tofalse
,git add
should ?add all files to plain git.Thks for pointing me to the "git add v7" very interesting thread. It explains everything.
I'm using git-annex version: 7.20190912 (the default in Ubuntu 19.10 packages).
Neither annex.gitaddtoannex nor annex.largefiles were set in my repo. In this version, I have to set annex.largefiles to "nothing" to get the expected behaviour, annex.gitaddtoannex true/false does not change anything. Of course, I verified this behaviour in a fresh new repo without any config change/hack.
But even if annex.gitaddtoannex does not change anything right now, I'll set it to false, in case later version of git-annex uses it.
annex.gitaddtoannex
.git add
behavior. Can this be fixed? Is it definitely the default version? I don't know much about Ubuntu packaging, but from https://packages.ubuntu.com/, 19.10 (focal
) seems to have version 7.20191230?Thks for pointing me to Conda, I didn't know it.
About Ubuntu 19.10 old git-annex package, it seems I have the expected revision. I rarely mess with the package manager (only nvidia drivers!), so I don't expect any issue there.
https://ubuntu.pkgs.org/19.10/ubuntu-universe-amd64/git-annex_7.20190912-1_amd64.deb.html https://packages.ubuntu.com/eoan/git-annex
Yes, I agree, my git-annex package is an old one. Ubuntu is supposed to be a stable main stream distro, so optional packages like git-annex are not the cutting edge ones. And 19.10 is not a LTS release, you can expect the situation to be worse on 18.04 LTS. Same on Debian, Raspbian etc...