summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-10-08 14:47:46 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-10-08 14:47:46 -0400
commit64dfd213e46f983d5cb504b446597e87f71440de (patch)
treeee70642df0e95c99828920b8d071d057b9ee5acf /doc
parentbab88f3596c570346a3d069af9e3c8ed92e473c9 (diff)
git-annex-shell: Added lockcontent command, to prevent dropping of key's content.
Diffstat (limited to 'doc')
-rw-r--r--doc/git-annex-shell.mdwn11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/git-annex-shell.mdwn b/doc/git-annex-shell.mdwn
index d0e0930c5..73517ba89 100644
--- a/doc/git-annex-shell.mdwn
+++ b/doc/git-annex-shell.mdwn
@@ -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.