git-annex-setpresentkey(1)

git-annex-setpresentkey1

Change records of where key is present

Usage

git annex setpresentkey key uuid [{1 | 0}]

Overview

This plumbing-level command changes git-annex's records about whether the specified key's content is present in a remote with the specified uuid.

Use 1 to indicate the key is present, or 0 to indicate the key is not present.

Options

--batch

Enables batch mode, in which lines are read from stdin. The line format is "key uuid [1|0]"

--json

Enable JSON output. This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object.

--json-error-messages

Messages that would normally be output to standard error are included in the JSON instead.

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

Releases

6 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10–11
  3. 12
  4. 13–Arch

--batch since Debian 10 (Buster); --json since Debian 13 (Trixie); --json-error-messages since Debian 13 (Trixie).

Author

Joey Hess <[email protected]>

From git-annex 10.20261026-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.