comment & close

This commit is contained in:
Joey Hess 2015-03-27 16:50:33 -04:00
parent f35d0bf4b2
commit 28d334afd2
2 changed files with 24 additions and 0 deletions

View file

@ -16,3 +16,5 @@ This would allow me to do stuff like this:
$ find -type l -xtype l -print0 | xargs -0 mv -t ~/files_not_found
Admittedly, to do this now, you just have to stage the symlinks before you fix but there may be other situations where this is useful (and I can't think of anything else you would want 'fix --force' to do)..
> Per my comment, this is not a good idea, so [[done]] --[[Joey]]

View file

@ -0,0 +1,22 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2015-03-27T20:48:07Z"
content="""
Currently git-annex uses git-ls-files to find the files to act on.
This would requires running git-ls-files twice, once with --others to find
the files not checked into git.
I don't like the added complexity, the slowdown for everyone else,
etc.
Also, I think it's very reasonable that git-annex commands do not
act on files that are not checked into git (except for git-annex add of
course). Acting on files that are not checked into git violates least
surprise.
So, just add the file to git if you want git-annex fix to
act on it. You don't even have to commit the file, you can just
stage it in the index, and then un-stage it after git-annex is done with
it, if for some reason you don't want to check it into git.
"""]]