summaryrefslogtreecommitdiffstats
path: root/man/repo-list.1
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-07-26 15:28:01 -0400
committerMike Frysinger <vapier@google.com>2021-07-27 06:20:52 +0000
commit5467185db0fe31558dbb57f08135c316861a86b1 (patch)
treedff80d322ce97145fe8f55cf4bd5b3b1505a820d /man/repo-list.1
parentb380322174c9b67da99ce743ff49382bab5cf351 (diff)
downloadgit-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.112
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
28show projects regardless of checkout state 28show projects regardless of checkout state
29.TP 29.TP
30\fB\-f\fR, \fB\-\-fullpath\fR
31display the full work tree path instead of the
32relative path
33.TP
34\fB\-n\fR, \fB\-\-name\-only\fR 30\fB\-n\fR, \fB\-\-name\-only\fR
35display only the name of the repository 31display 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
38display only the path of the repository 34display only the path of the repository
35.TP
36\fB\-f\fR, \fB\-\-fullpath\fR
37display the full work tree path instead of the
38relative path
39.TP
40\fB\-\-relative\-to\fR=\fI\,PATH\/\fR
41display paths relative to this one (default: top of
42repo 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