diff options
author | Mike Frysinger <vapier@google.com> | 2021-07-26 15:28:01 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2021-07-27 06:20:52 +0000 |
commit | 5467185db0fe31558dbb57f08135c316861a86b1 (patch) | |
tree | dff80d322ce97145fe8f55cf4bd5b3b1505a820d /man/repo-list.1 | |
parent | b380322174c9b67da99ce743ff49382bab5cf351 (diff) | |
download | git-repo-5467185db0fe31558dbb57f08135c316861a86b1.tar.gz |
list: add a --relative-to option
The current list output only shows project paths relative to the
root of the repo client checkout. It can be helpful to also get
a listing of paths based on other paths (e.g. the current working
directory), so add an option to repo list to support that. We'll
leverage this in bash completion to support completing projects by
their local paths and not just remote names.
Bug: https://crbug.com/gerrit/14797
Change-Id: Ia2b35d18c890217768448118b003874a1016efd4
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/312904
Reviewed-by: Xin Li <delphij@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'man/repo-list.1')
-rw-r--r-- | man/repo-list.1 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/man/repo-list.1 b/man/repo-list.1 index a86315ae..7f85e612 100644 --- a/man/repo-list.1 +++ b/man/repo-list.1 | |||
@@ -27,15 +27,19 @@ project is in | |||
27 | \fB\-a\fR, \fB\-\-all\fR | 27 | \fB\-a\fR, \fB\-\-all\fR |
28 | show projects regardless of checkout state | 28 | show projects regardless of checkout state |
29 | .TP | 29 | .TP |
30 | \fB\-f\fR, \fB\-\-fullpath\fR | ||
31 | display the full work tree path instead of the | ||
32 | relative path | ||
33 | .TP | ||
34 | \fB\-n\fR, \fB\-\-name\-only\fR | 30 | \fB\-n\fR, \fB\-\-name\-only\fR |
35 | display only the name of the repository | 31 | display only the name of the repository |
36 | .TP | 32 | .TP |
37 | \fB\-p\fR, \fB\-\-path\-only\fR | 33 | \fB\-p\fR, \fB\-\-path\-only\fR |
38 | display only the path of the repository | 34 | display only the path of the repository |
35 | .TP | ||
36 | \fB\-f\fR, \fB\-\-fullpath\fR | ||
37 | display the full work tree path instead of the | ||
38 | relative path | ||
39 | .TP | ||
40 | \fB\-\-relative\-to\fR=\fI\,PATH\/\fR | ||
41 | display paths relative to this one (default: top of | ||
42 | repo client checkout) | ||
39 | .SS Logging options: | 43 | .SS Logging options: |
40 | .TP | 44 | .TP |
41 | \fB\-v\fR, \fB\-\-verbose\fR | 45 | \fB\-v\fR, \fB\-\-verbose\fR |