summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2012-04-16 11:02:21 -0700
committerShawn O. Pearce <sop@google.com>2012-04-23 12:50:00 -0700
commitd21720db313369f25b99b4d2f3f87c8be46513d9 (patch)
treea73e659e8fd18c7e3fc67880a1a9be8c2a409c86 /repo
parent971de8ea7b7e474a4d9253b6c9f47da3f1130973 (diff)
downloadgit-repo-d21720db313369f25b99b4d2f3f87c8be46513d9.tar.gz
Add a --platform flag
Projects may optionally specify their platform (eg, groups="platform-linux" in the manifest). By default, repo will automatically detect the platform. However, users may specify --platform=[auto|all|linux|darwin]. Change-Id: Ie678851fb2fec5b0938aede01f16c53138a16537
Diffstat (limited to 'repo')
-rwxr-xr-xrepo5
1 files changed, 5 insertions, 0 deletions
diff --git a/repo b/repo
index 0aabc0d8..860a15d5 100755
--- a/repo
+++ b/repo
@@ -129,6 +129,11 @@ group.add_option('-g', '--groups',
129 dest='groups', default='default', 129 dest='groups', default='default',
130 help='restrict manifest projects to ones with a specified group', 130 help='restrict manifest projects to ones with a specified group',
131 metavar='GROUP') 131 metavar='GROUP')
132group.add_option('-p', '--platform',
133 dest='platform', default="auto",
134 help='restrict manifest projects to ones with a specified'
135 'platform group [auto|all|none|linux|darwin|...]',
136 metavar='PLATFORM')
132 137
133 138
134# Tool 139# Tool