close not viable

This commit is contained in:
Joey Hess 2019-11-22 12:08:41 -04:00
parent 92e1bb250b
commit cf2e23d39c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 21 additions and 0 deletions

View file

@ -1 +1,3 @@
Right now, non-annexed files get passed through the `annex` clean/smudge filter (see [[forum/Adding_files_to_git__58___Very_long___34__recording_state_in_git__34___phase]]). It would be better if `git-annex` configure the filter only for the annexed unlocked files, in the `.gitattributes` file at the root of the repository.
> not a viable solution, [[done]] --[[Joey]]

View file

@ -0,0 +1,19 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2019-11-22T16:01:26Z"
content="""
It immediately occurs to me that the proposal would break this:
git annex add foo
git annex add bar
git annex unlock bar
git mv bar foo
git commit -m add
Since foo was a locked file, gitattributes would prevent from being
smudged, so the large content that was in bar gets committed directly to git.
The right solution is to improve the smudge/clean filter interface to it's
not so slow, which there is copious discussion of elsewhere.
"""]]