2015-03-24 19:23:59 +00:00
|
|
|
# NAME
|
|
|
|
|
2019-01-16 18:16:10 +00:00
|
|
|
git-annex info - information about an item or the repository
|
2015-03-24 19:23:59 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
2019-03-28 17:21:37 +00:00
|
|
|
git annex info `[directory|file|treeish|remote|description|uuid ...]`
|
2015-03-24 19:23:59 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2023-11-06 15:11:50 +00:00
|
|
|
Displays statistics and other information for the specified item.
|
|
|
|
|
|
|
|
When no item is specified, displays overall information. This includes a
|
|
|
|
list of all known repositories, how much annexed data is present in the
|
2023-12-29 16:09:30 +00:00
|
|
|
local repository, the total size of all annexed data in the working
|
|
|
|
tree, the combined size of annexed data in all repositories, and the annex
|
|
|
|
sizes of each repository.
|
2023-11-06 15:11:50 +00:00
|
|
|
|
|
|
|
When a directory is specified, displays information
|
|
|
|
about the annexed files in that directory (and subdirectories).
|
|
|
|
This includes how much annexed data is present in the local repository,
|
|
|
|
the total size of all annexed data in the directory, how many files
|
|
|
|
have the specified numcopies or more (+1, +2 etc) or less (-1, -2 etc),
|
|
|
|
and information about how much of the annexed data is stored in known
|
|
|
|
repositories.
|
|
|
|
|
|
|
|
When a treeish is specified, displays similar information
|
|
|
|
as when a directory is specified, but about the annexed files in that
|
|
|
|
treeish.
|
|
|
|
|
|
|
|
When a remote, or description of a repository, or uuid is specified,
|
|
|
|
displays information about the specified repository, including the total
|
|
|
|
amount of annexed data stored in it, and a variety of configuration
|
|
|
|
information.
|
2015-03-24 19:23:59 +00:00
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
* `--fast`
|
|
|
|
|
2023-11-06 15:11:50 +00:00
|
|
|
Only show the information that can be gathered quickly.
|
2015-03-24 19:23:59 +00:00
|
|
|
|
|
|
|
* `--json`
|
|
|
|
|
2015-03-25 16:09:49 +00:00
|
|
|
Enable JSON output. This is intended to be parsed by programs that use
|
2023-04-25 21:37:34 +00:00
|
|
|
git-annex. Each line of output is a JSON object.
|
2015-03-24 19:23:59 +00:00
|
|
|
|
2018-02-19 18:28:17 +00:00
|
|
|
* `--json-error-messages`
|
|
|
|
|
2023-04-25 21:37:34 +00:00
|
|
|
Messages that would normally be output to standard error are included in
|
|
|
|
the JSON instead.
|
2018-02-19 18:28:17 +00:00
|
|
|
|
2015-04-12 18:08:40 +00:00
|
|
|
* `--bytes`
|
|
|
|
|
|
|
|
Show file sizes in bytes, disabling the default nicer units.
|
|
|
|
|
2016-01-15 19:56:47 +00:00
|
|
|
* `--batch`
|
|
|
|
|
|
|
|
Enable batch mode, in which a line containing an item is read from stdin,
|
|
|
|
the information about it is output to stdout, and repeat.
|
|
|
|
|
added -z
Added -z option to git-annex commands that use --batch, useful for
supporting filenames containing newlines.
It only controls input to --batch, the output will still be line delimited
unless --json or etc is used to get some other output. While git often
makes -z affect both input and output, I don't like trying them together,
and making it affect output would have been a significant complication,
and also git-annex output is generally not intended to be machine parsed,
unless using --json or a format option.
Commands that take pairs like "file key" still separate them with a space
in --batch mode. All such commands take care to support filenames with
spaces when parsing that, so there was no need to change it, and it would
have needed significant changes to the batch machinery to separate tose
with a null.
To make fromkey and registerurl support -z, I had to give them a --batch
option. The implicit batch mode they enter when not provided with input
parameters does not support -z as that would have complicated option
parsing. Seemed better to move these toward using the same --batch as
everything else, though the implicit batch mode can still be used.
This commit was sponsored by Ole-Morten Duesund on Patreon.
2018-09-20 20:09:21 +00:00
|
|
|
* `-z`
|
|
|
|
|
|
|
|
Makes the `--batch` input be delimited by nulls instead of the usual
|
|
|
|
newlines.
|
|
|
|
|
2022-06-01 18:20:38 +00:00
|
|
|
* `--autoenable`
|
|
|
|
|
|
|
|
Display a list of special remotes that have been configured to
|
|
|
|
autoenable.
|
|
|
|
|
2023-08-09 16:43:48 +00:00
|
|
|
* `--dead-repositories`
|
|
|
|
|
|
|
|
Display a list of repositories that have been marked as dead.
|
|
|
|
Such repositories are not displayed in other info displays.
|
|
|
|
|
2022-02-21 18:45:11 +00:00
|
|
|
* matching options
|
2015-03-24 19:23:59 +00:00
|
|
|
|
2022-02-21 18:45:11 +00:00
|
|
|
The [[git-annex-matching-options]](1) can be used to select what
|
|
|
|
to include in the statistics.
|
2015-03-24 19:23:59 +00:00
|
|
|
|
2021-05-10 19:00:13 +00:00
|
|
|
* Also the [[git-annex-common-options]](1) can be used.
|
|
|
|
|
2015-03-24 19:23:59 +00:00
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
Suppose you want to run "git annex get .", but
|
|
|
|
would first like to see how much disk space that will use.
|
|
|
|
Then run:
|
|
|
|
|
|
|
|
git annex info --fast . --not --in here
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|