examinekey: Added two new format variables: objectpath and objectpointer
This commit is contained in:
parent
c5141b469a
commit
12e32d1dee
4 changed files with 22 additions and 10 deletions
|
@ -22,9 +22,13 @@ that can be determined purely by looking at the key.
|
|||
use '${var;width}' ; to left-justify a variable, use '${var;-width}';
|
||||
to escape unusual characters in a variable, use '${escaped_var}'
|
||||
|
||||
These variables are available for use in formats: key, backend,
|
||||
bytesize, humansize, keyname, hashdirlower, hashdirmixed, mtime (for
|
||||
the mtime field of a WORM key).
|
||||
To generate a path from the top of the repository to the git-annex
|
||||
object for a key, use ${objectpath}. To generate the value of a
|
||||
git-annex pointer file for a key, use ${objectpointer}.
|
||||
|
||||
These variables are also available for use in formats: ${key}, ${backend},
|
||||
${bytesize}, ${humansize}, ${keyname}, ${hashdirlower}, ${hashdirmixed},
|
||||
${mtime} (for the mtime field of a WORM key).
|
||||
|
||||
Also, '\\n' is a newline, '\\000' is a NULL, etc.
|
||||
|
||||
|
@ -43,12 +47,6 @@ that can be determined purely by looking at the key.
|
|||
Enable batch mode, in which a line containing a key is read from stdin,
|
||||
the information about it is output to stdout, and repeat.
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
The location where the content of a key is stored can be looked up by running:
|
||||
|
||||
git annex examinekey $KEY --format='.git/annex/objects/${hashdirmixed}${key}/${key}'
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
[[git-annex]](1)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 3"""
|
||||
date="2020-11-12T16:59:34Z"
|
||||
content="""
|
||||
Implemented examinekey ${objectpath} and ${objectpointer}.
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue