diff options
| author | Mike Frysinger <vapier@google.com> | 2025-05-22 14:14:45 -0400 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-05-27 09:26:43 -0700 |
| commit | 06338abe79f1fbef61f7297530ebf11139654d6c (patch) | |
| tree | 738d8ba21689be7b2e9f37b0143717c210690a95 /subcmds/list.py | |
| parent | 8d37f6147174fe170cc00a1d82b1cc5fe8ec0a7b (diff) | |
| download | git-repo-06338abe79f1fbef61f7297530ebf11139654d6c.tar.gz | |
subcmds: delete redundant dest= settings
Add a test to enforce this too.
Change-Id: I80b5cf567aa33db9c24b53428c66d69f9c1d8d74
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/478481
Commit-Queue: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Scott Lee <ddoman@google.com>
Diffstat (limited to 'subcmds/list.py')
| -rw-r--r-- | subcmds/list.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/subcmds/list.py b/subcmds/list.py index 4338e1c9..df9ce5f6 100644 --- a/subcmds/list.py +++ b/subcmds/list.py | |||
| @@ -40,7 +40,6 @@ This is similar to running: repo forall -c 'echo "$REPO_PATH : $REPO_PROJECT"'. | |||
| 40 | p.add_option( | 40 | p.add_option( |
| 41 | "-r", | 41 | "-r", |
| 42 | "--regex", | 42 | "--regex", |
| 43 | dest="regex", | ||
| 44 | action="store_true", | 43 | action="store_true", |
| 45 | help="filter the project list based on regex or wildcard matching " | 44 | help="filter the project list based on regex or wildcard matching " |
| 46 | "of strings", | 45 | "of strings", |
| @@ -48,7 +47,6 @@ This is similar to running: repo forall -c 'echo "$REPO_PATH : $REPO_PROJECT"'. | |||
| 48 | p.add_option( | 47 | p.add_option( |
| 49 | "-g", | 48 | "-g", |
| 50 | "--groups", | 49 | "--groups", |
| 51 | dest="groups", | ||
| 52 | help="filter the project list based on the groups the project is " | 50 | help="filter the project list based on the groups the project is " |
| 53 | "in", | 51 | "in", |
| 54 | ) | 52 | ) |
| @@ -61,21 +59,18 @@ This is similar to running: repo forall -c 'echo "$REPO_PATH : $REPO_PROJECT"'. | |||
| 61 | p.add_option( | 59 | p.add_option( |
| 62 | "-n", | 60 | "-n", |
| 63 | "--name-only", | 61 | "--name-only", |
| 64 | dest="name_only", | ||
| 65 | action="store_true", | 62 | action="store_true", |
| 66 | help="display only the name of the repository", | 63 | help="display only the name of the repository", |
| 67 | ) | 64 | ) |
| 68 | p.add_option( | 65 | p.add_option( |
| 69 | "-p", | 66 | "-p", |
| 70 | "--path-only", | 67 | "--path-only", |
| 71 | dest="path_only", | ||
| 72 | action="store_true", | 68 | action="store_true", |
| 73 | help="display only the path of the repository", | 69 | help="display only the path of the repository", |
| 74 | ) | 70 | ) |
| 75 | p.add_option( | 71 | p.add_option( |
| 76 | "-f", | 72 | "-f", |
| 77 | "--fullpath", | 73 | "--fullpath", |
| 78 | dest="fullpath", | ||
| 79 | action="store_true", | 74 | action="store_true", |
| 80 | help="display the full work tree path instead of the relative path", | 75 | help="display the full work tree path instead of the relative path", |
| 81 | ) | 76 | ) |
