From 5467185db0fe31558dbb57f08135c316861a86b1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 26 Jul 2021 15:28:01 -0400 Subject: 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 Tested-by: Mike Frysinger --- man/repo-list.1 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'man/repo-list.1') 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 \fB\-a\fR, \fB\-\-all\fR show projects regardless of checkout state .TP -\fB\-f\fR, \fB\-\-fullpath\fR -display the full work tree path instead of the -relative path -.TP \fB\-n\fR, \fB\-\-name\-only\fR display only the name of the repository .TP \fB\-p\fR, \fB\-\-path\-only\fR display only the path of the repository +.TP +\fB\-f\fR, \fB\-\-fullpath\fR +display the full work tree path instead of the +relative path +.TP +\fB\-\-relative\-to\fR=\fI\,PATH\/\fR +display paths relative to this one (default: top of +repo client checkout) .SS Logging options: .TP \fB\-v\fR, \fB\-\-verbose\fR -- cgit v1.2.3-54-g00ecf