Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions content/docs/command-reference/metrics/diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ lists all the current metrics without comparisons.
$ dvc metrics diff HEAD v1 --targets t1.json t2.json
```

Note, that when using `--targets` it is possible to `diff` files that are not
specifically marked as metrics.

- `-R`, `--recursive` - determines the metric files to use by searching each
target directory and its subdirectories for DVC-files to inspect. If there are
no directories among the `targets`, this option is ignored.
Expand Down
10 changes: 5 additions & 5 deletions content/docs/command-reference/metrics/show.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Finds and prints all metrics in the <abbr>project</abbr> by examining all of its
> This kind of metrics can be defined with the `-m` (`--metrics`) and `-M`
> (`--metrics-no-cache`) options of `dvc run`.

If `targets` are provided, it will show those specific metric files instead.
With the `-a` or `-T` options, this command shows the different metrics values
across all Git branches or tags, respectively. With the `-R` option, some of the
target can even be directories, so that DVC recursively shows all metric files
inside.
If `targets` are provided, it will show those specific files instead, even if
they are not found as `metrics` in `dvc.yaml`. With the `-a` or `-T` options,
this command shows the different metrics values across all Git branches or tags,
respectively. With the `-R` option, some of the target can even be directories,
so that DVC recursively shows all metric files inside.

An alternative way to display metrics is the `dvc metrics diff` command, which
compares them with a previous version.
Expand Down