summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-15 14:46:29 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-15 14:52:09 -0400
commit0ca7ec1752419b9245373f5063c7c86e52ef2e9a (patch)
treed368bc5367f5549c75ddbed0bf10407ce66e41f5 /doc/git-annex.mdwn
parent3d1b94998a0aff3d08cf8648ae977614412e8138 (diff)
Add plumbing-level lookupkey examinekey command.
find --format: Added hashdirlower, hashdirmixed, keyname, and mtime format variables.
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn19
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 5d61b8b40..692641caf 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -601,7 +601,7 @@ subdirectories).
`--format`. The default output format is the same as `--format='${file}\\n'`
These variables are available for use in formats: file, key, backend,
- bytesize, humansize
+ bytesize, humansize, keyname, hashdirlower, hashdirmixed, mtime.
* `whereis [path ...]`
@@ -734,6 +734,23 @@ subdirectories).
the file is not added to git, or is not a git-annex managed file),
nothing is output, and it exits nonzero.
+* `examinekey [key ...]`
+
+ This plumbing-level command is given a key, and prints information
+ that can be determined purely by looking at the key.
+
+ To specify what information to print, use `--format`. Or use `--json`
+ to get all available information in JSON format.
+
+ The same variables can be used in the format string as can be used in
+ the format string of git annex find (except there is no file option
+ here).
+
+ For example, the location a key's value is stored (in indirect mode)
+ can be looked up by running:
+
+ git annex examinekey --format='.git/annex/objects/${hashdirmixed}${key}/${key}'
+
* `fromkey key file`
This plumbing-level command can be used to manually set up a file