Edit on GitHub

history

Show a journal of registry operations.

Synopsis

usage: gto history [-r <text>] [-a] [-A] [--json] [--plain]
                   [--asc] [-h]
                   [name]

arguments:
  [name]           Artifact name to show. If empty, show all.

Description

This command prints a journal of the events that happened to an artifact. This allows you to audit the changes.

$ gto history churn -r https://github.com/iterative/example-gto
โ•’โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ••
โ”‚ timestamp           โ”‚ artifact   โ”‚ event        โ”‚ version   โ”‚ stage   โ”‚ commit   โ”‚ ref             โ”‚
โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก
โ”‚ 2022-11-09 13:40:33 โ”‚ churn      โ”‚ assignment   โ”‚ v3.1.1    โ”‚ dev     โ”‚ 2f2a8de  โ”‚ churn#dev#5     โ”‚
โ”‚ 2022-11-09 13:40:33 โ”‚ churn      โ”‚ registration โ”‚ v3.1.1    โ”‚ -       โ”‚ 2f2a8de  โ”‚ churn@v3.1.1    โ”‚
โ”‚ 2022-11-08 09:53:53 โ”‚ churn      โ”‚ commit       โ”‚ v3.1.1    โ”‚ -       โ”‚ 2f2a8de  โ”‚ 2f2a8de         โ”‚
โ”‚ 2022-11-07 06:07:13 โ”‚ churn      โ”‚ assignment   โ”‚ v3.1.0    โ”‚ dev     โ”‚ 064f173  โ”‚ churn#dev#4     โ”‚
โ”‚ 2022-11-06 02:20:33 โ”‚ churn      โ”‚ assignment   โ”‚ v3.0.0    โ”‚ prod    โ”‚ ddae695  โ”‚ churn#prod#3    โ”‚
โ”‚ 2022-11-04 22:33:53 โ”‚ churn      โ”‚ assignment   โ”‚ v3.1.0    โ”‚ staging โ”‚ 064f173  โ”‚ churn#staging#2 โ”‚
โ”‚ 2022-11-03 18:47:13 โ”‚ churn      โ”‚ assignment   โ”‚ v3.0.0    โ”‚ dev     โ”‚ ddae695  โ”‚ churn#dev#1     โ”‚
โ”‚ 2022-11-02 15:00:33 โ”‚ churn      โ”‚ registration โ”‚ v3.1.0    โ”‚ -       โ”‚ 064f173  โ”‚ churn@v3.1.0    โ”‚
โ”‚ 2022-11-01 11:13:53 โ”‚ churn      โ”‚ commit       โ”‚ v3.1.0    โ”‚ -       โ”‚ 064f173  โ”‚ 064f173         โ”‚
โ”‚ 2022-10-28 23:53:53 โ”‚ churn      โ”‚ registration โ”‚ v3.0.0    โ”‚ -       โ”‚ ddae695  โ”‚ churn@v3.0.0    โ”‚
โ”‚ 2022-10-27 20:07:13 โ”‚ churn      โ”‚ commit       โ”‚ v3.0.0    โ”‚ -       โ”‚ ddae695  โ”‚ ddae695         โ”‚
โ•˜โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•›

Use --all-branches and --all-commits to read more than just HEAD.

Options

  • -r <text>, --repo <text> - Local or remote repository [default: .]
  • -a, --all-branches - Read heads from all branches
  • -A, --all-commits - Read all commits
  • --json - Print output in json format
  • --plain - Print table in grep-able format
  • --ascending, --asc - Show new first
  • -h, --help - Show this message and exit.
Content

๐Ÿ› Found an issue? Let us know! Or fix it:

Edit on GitHub

โ“ Have a question? Join our chat, we will help you:

Discord Chat