2015-03-24 19:23:59 +00:00
|
|
|
# NAME
|
|
|
|
|
2023-11-10 20:17:15 +00:00
|
|
|
git-annex log - shows location log information
|
2015-03-24 19:23:59 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
git annex log `[path ...]`
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2023-11-10 20:17:15 +00:00
|
|
|
This command displays information from the history of the git-annex branch.
|
2015-03-24 19:23:59 +00:00
|
|
|
|
2023-11-10 20:17:15 +00:00
|
|
|
Several things can prevent that information being available to display.
|
2023-11-13 17:07:22 +00:00
|
|
|
When [[git-annex-forget]] is used, old historical
|
2023-11-10 20:17:15 +00:00
|
|
|
data gets cleared from the branch. When annex.private or
|
2021-04-23 18:53:38 +00:00
|
|
|
remote.name.annex-private is configured, git-annex does not write
|
|
|
|
information to the branch at all. And when annex.alwayscommit is set to
|
|
|
|
false, information may not have been committed to the branch yet.
|
|
|
|
|
2015-03-24 19:23:59 +00:00
|
|
|
# OPTIONS
|
|
|
|
|
2023-11-10 20:17:15 +00:00
|
|
|
* `[path ...]`
|
|
|
|
|
|
|
|
Displays the location log for the specified file or files, showing each
|
|
|
|
repository they were added to ("+") and removed from ("-"). Note that
|
|
|
|
it displays information about the file content currently at these paths,
|
|
|
|
not for any different content that was there in earlier commits.
|
|
|
|
|
|
|
|
* matching options
|
|
|
|
|
|
|
|
The [[git-annex-matching-options]](1)
|
|
|
|
can be used to control what to act on when displaying the location log
|
|
|
|
for specified files.
|
|
|
|
|
|
|
|
* `--all` `-A`
|
|
|
|
|
|
|
|
Shows location log changes to all content, with the most recent changes first.
|
|
|
|
In this mode, the names of files are not available and keys are displayed
|
|
|
|
instead.
|
|
|
|
|
|
|
|
* `--sizesof=repository`
|
|
|
|
|
2023-11-13 17:07:22 +00:00
|
|
|
Displays a history of the total size of the annexed files in a repository
|
2023-11-14 18:00:06 +00:00
|
|
|
over time from the creation of the repository to the present.
|
2023-11-10 20:17:15 +00:00
|
|
|
|
|
|
|
The repository can be "here" for the current repository, or the name of a
|
|
|
|
remote, or a repository description or uuid.
|
|
|
|
|
2023-11-13 17:07:22 +00:00
|
|
|
Note that keys that do not have a known size are not included in the
|
|
|
|
total.
|
2023-11-10 20:17:15 +00:00
|
|
|
|
|
|
|
* `--sizes`
|
|
|
|
|
|
|
|
This is like --sizesof, but rather than display the size of a single
|
2023-11-13 17:07:22 +00:00
|
|
|
repository, it displays the sizes of all known repositories.
|
|
|
|
|
|
|
|
The output is a CSV formatted table.
|
2023-11-10 20:17:15 +00:00
|
|
|
|
|
|
|
* `--totalsizes`
|
|
|
|
|
|
|
|
This is like `--sizesof`, but it displays the total size of all
|
|
|
|
known repositories.
|
|
|
|
|
2023-11-14 15:45:16 +00:00
|
|
|
* `--interval=time`
|
2023-11-10 20:17:15 +00:00
|
|
|
|
|
|
|
When using `--sizesof`, `--sizes`, and `--totalsizes`, this
|
2023-11-14 15:45:16 +00:00
|
|
|
controls the minimum interval between displays of the size.
|
2023-11-14 18:00:06 +00:00
|
|
|
The default is to display each new recorded size.
|
2023-11-10 20:17:15 +00:00
|
|
|
|
|
|
|
The time is of the form "30d" or "1y".
|
|
|
|
|
2023-11-14 18:00:06 +00:00
|
|
|
* `--received`
|
2015-03-24 19:23:59 +00:00
|
|
|
|
2023-11-14 18:00:06 +00:00
|
|
|
Combine this option with `--sizesof` or `--sizes` to display
|
|
|
|
the amount of data received into repositories since the last
|
|
|
|
line was output.
|
2023-11-10 20:17:15 +00:00
|
|
|
|
2023-11-14 18:56:58 +00:00
|
|
|
* `--gnuplot`
|
|
|
|
|
|
|
|
Combine this option with `--sizesof` or `--sizes` or `--totalsizes`
|
|
|
|
to use gnuplot(1) to graph the data. The gnuplot file will be left on
|
|
|
|
disk for you to reuse.
|
|
|
|
|
|
|
|
For example, to graph the sizes of all repositories:
|
|
|
|
|
|
|
|
git-annex log --sizes --interval=1d --gnuplot
|
|
|
|
|
|
|
|
To graph the amount of new data received into each repository every 30
|
|
|
|
days:
|
|
|
|
|
|
|
|
git-annex log --sizes --interval=30d --gnuplot --recieved
|
|
|
|
|
2023-11-10 20:17:15 +00:00
|
|
|
* `--bytes`
|
|
|
|
|
|
|
|
Show sizes in bytes, disabling the default nicer units.
|
|
|
|
|
2016-03-29 18:39:16 +00:00
|
|
|
* `--raw-date`
|
|
|
|
|
|
|
|
Rather than the normal display of a date in the local time zone,
|
|
|
|
displays seconds since the unix epoch.
|
|
|
|
|
2023-11-14 18:00:06 +00:00
|
|
|
* `--since=date`, `--after=date`, `--until=date`, `--before=date`, `--max-count=N`
|
|
|
|
|
|
|
|
These options are passed through to `git log`, and can be used to limit
|
|
|
|
how far back to search for location log changes.
|
|
|
|
|
|
|
|
For example: `--since "1 month ago"`
|
|
|
|
|
|
|
|
These options do not have an affect when using `--sizesof`, `--sizes`,
|
|
|
|
and `--totalsizes`.
|
|
|
|
|
2015-03-24 19:23:59 +00:00
|
|
|
* `--gource`
|
|
|
|
|
|
|
|
Generates output suitable for the `gource` visualization program.
|
2023-11-10 20:17:15 +00:00
|
|
|
|
|
|
|
This option does not have an affect when using `--sizesof`, `--sizes`,
|
|
|
|
and `--totalsizes`.
|
2015-03-24 19:23:59 +00:00
|
|
|
|
2023-05-04 16:36:31 +00:00
|
|
|
* `--json`
|
|
|
|
|
|
|
|
Enable JSON output. This is intended to be parsed by programs that use
|
|
|
|
git-annex. Each line of output is a JSON object.
|
2023-11-10 20:17:15 +00:00
|
|
|
|
|
|
|
This option does not have an affect when using `--sizesof`, `--sizes`,
|
|
|
|
and `--totalsizes`.
|
2023-05-04 16:36:31 +00:00
|
|
|
|
|
|
|
* `--json-error-messages`
|
|
|
|
|
|
|
|
Messages that would normally be output to standard error are included in
|
|
|
|
the JSON instead.
|
2015-03-24 19:23:59 +00:00
|
|
|
|
2023-11-10 20:17:15 +00:00
|
|
|
This option does not have an affect when using `--sizesof`, `--sizes`,
|
|
|
|
and `--totalsizes`.
|
2016-07-17 19:15:08 +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
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
2015-07-06 22:22:27 +00:00
|
|
|
[[git-annex-forget]](1)
|
|
|
|
|
2015-03-24 19:23:59 +00:00
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|