git-annex-shell: Added lockcontent command, to prevent dropping of key's content.

This commit is contained in:
Joey Hess 2015-10-08 14:47:46 -04:00
parent 4d50958ed7
commit 5240a9f315
Failed to extract signature
4 changed files with 60 additions and 0 deletions

View file

@ -43,6 +43,17 @@ first "/~/" or "/~user/" is expanded to the specified home directory.
Exits 100 if it's unable to tell (perhaps the key is in the process of
being removed from the annex).
* lockcontent directory key
This locks a key's content in place in the annex, preventing it from
being dropped.
Once the content is successfully locked, outputs "OK". Then the content
remains locked until a newline is received from the caller or the
connection is broken.
Exits nonzero if the content is not present, or could not be locked.
* dropkey directory [key ...]
This drops the annexed data for the specified keys.