From 06ba91827647853081f28d681c91283287ea857f Mon Sep 17 00:00:00 2001 From: karajan1001 Date: Mon, 17 Jan 2022 18:51:29 +0800 Subject: [PATCH] exp show: add `--rev` flag exp show 1. add a new flag `--rev` to `dvc exp show` command. related to https://github.com/iterative/dvc/pull/7204 Co-authored-by: Jorge Orpinel Co-authored-by: Dave Berenbaum --- content/docs/command-reference/exp/show.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/content/docs/command-reference/exp/show.md b/content/docs/command-reference/exp/show.md index 64d2b24ef4..0c1037f9aa 100644 --- a/content/docs/command-reference/exp/show.md +++ b/content/docs/command-reference/exp/show.md @@ -8,8 +8,8 @@ Displays your experiments in a customizable table or ## Synopsis ```usage -usage: dvc exp show [-h] [-q | -v] [-a] [-T] [-A] [-n ] - [--no-pager] [--drop ] +usage: dvc exp show [-h] [-q | -v] [-a] [-T] [-A] [--rev ] + [-n ] [--no-pager] [--drop ] [--keep ] [--param-deps] [--sort-by ] [--sort-order {asc,desc}] [--sha] @@ -74,7 +74,12 @@ will be generated using the same data from the table. - `-A`, `--all-commits` - include experiments derived from all Git commits, as well as from the last one. This prints all experiments in the project. -- `-n `, `--num ` - show the last `num` commits from HEAD. +- `--rev ` - show experiments derived from the specified `` as + baseline. Defaults to `HEAD` if none of `--rev`, `-a`, `-T`, `-A` is used. + +- `-n `, `--num ` - show experiments from the last `num` commits + (first parents) starting from the `--rev` baseline. Give a negative value to + include all first-parent commits (similar to `git log -n`). - `--no-pager` - do not enter the pager screen. Writes the entire table to standard output. Useful to redirect the output to a file, or use your own