metadata: Added --remove-all.

Motivation is to remove all metadata when it gets copied from a previous
version of the file, and that is not deisrable.

This commit was supported by the NSF-funded DataLad project.
This commit is contained in:
Joey Hess 2017-09-28 12:36:10 -04:00
parent b4d13c75a1
commit 812d90022b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 23 additions and 1 deletions

View file

@ -60,6 +60,15 @@ automatically.
Unset a tag.
* `--remove-all`
Remove all metadata from the specified files.
When a file is modified and the new version added, git-annex will copy
over the metadata from the old version of the file. In situations where
you don't want that copied metadata, you can use this option to remove
it.
* `--force`
By default, `git annex metadata` refuses to recursively set metadata