git-annex/doc/git-annex-fix.mdwn
Joey Hess f20c8b087e
fix: Support --json and --json-error-messages
And triaged out some commands that don't need to support these options.

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
2023-05-04 14:28:21 -04:00

49 lines
1,023 B
Markdown

# NAME
git-annex fix - fix up links to annexed content
# SYNOPSIS
git annex fix `[path ...]`
# DESCRIPTION
Fixes up symlinks that have become broken to again point to annexed
content.
This is useful to run manually when you have been moving the symlinks
around, but is done automatically when committing a change with git too.
Also, adjusts unlocked files to be copies or hard links as
configured by annex.thin.
# OPTIONS
* file matching options
The [[git-annex-matching-options]](1)
can be used to specify files to fix.
* `--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.
# SEE ALSO
[[git-annex]](1)
[[git-annex-fsck]](1)
# AUTHOR
Joey Hess <id@joeyh.name>
Warning: Automatically converted into a man page by mdwn2man. Edit with care.