--force will cause add, etc, to operate on ignored files.

This commit is contained in:
Joey Hess 2011-06-29 11:42:00 -04:00
parent fb7663ceb8
commit b3aaf980e4
6 changed files with 23 additions and 9 deletions

View file

@ -3,4 +3,9 @@ I have this line in the .gitignore file of one of my repos:
So the command 'git annex init name' fails to add the file ".git-annex/uuid.log", and the same problem happens when git-annex-add'ing files.
> This is avoided on the v3 branch, which does not store these files in the
> same branch as your repository.
Also, when a file is git-ignored, it should be possible to 'git annex add' it with a -f/--force option, the same way git does it.
> Reasonable, [[done]] --[[Joey]]

View file

@ -314,7 +314,8 @@ Many git-annex commands will stage changes for later `git commit` by you.
* --force
Force unsafe actions, such as dropping a file's content when no other
source of it can be verified to still exist. Use with care.
source of it can be verified to still exist, or adding ignored files.
Use with care.
* --fast