logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

git-annex-lookupkey - looks up key used for file

Author

       Joey Hess <id@joeyh.name>

                                                                                          git-annex-lookupkey(1)

Description

       This  plumbing-level  command looks up the key used for a file in the index. The key is output to stdout.
       If there is no key (because the file is not present in the index, or is not a  git-annex  managed  file),
       nothing is output, and it exits nonzero.

Name

       git-annex-lookupkey - looks up key used for file

Options

--ref

              Rather  than  looking for the specified files in the index, interpet them as git refs. For example
              to find the key used for somefile in tag v1.0:

              git-annex lookupkey v1.0:somefile

       --batch
              Enable batch mode, in which a line containing the filename is read from stdin, the key  is  output
              to stdout (with a trailing newline), and repeat.

              Note that if there is no key corresponding to the file, an empty line is output to stdout instead.

       -z     Makes the --batch input be delimited by nulls instead of the usual newlines.

       Also the git-annex-common-options(1) can be used.

See Also

git-annex(1)

Synopsis

       git annex lookupkey [file...]

See Also