summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-03-28 20:15:45 -0700
committerShawn Pearce <sop@google.com>2012-04-13 09:46:00 -0700
commit5acde75e5d70b323197ffb2c9d4fdea3612098f5 (patch)
treee995a64614ce7406633ae6e99c2a0e6f86872e09 /repo
parentd67872d2f47b2f09a0e2aa4adfd62e6f69154c9b (diff)
downloadgit-repo-1.8.2.tar.gz
Add manifest groupsv1.8.2
Allows specifying a list of groups with a -g argument to repo init. The groups act on a group= attribute specified on projects in the manifest. All projects are implicitly labelled with "default" unless they are explicitly labelled "-default". Prefixing a group with "-" removes matching projects from the list of projects to sync. If any non-inverted manifest groups are specified, the default label is ignored. Change-Id: I3a0dd7a93a8a1756205de1d03eee8c00906af0e5 Reviewed-on: https://gerrit-review.googlesource.com/34570 Reviewed-by: Shawn Pearce <sop@google.com> Tested-by: Shawn Pearce <sop@google.com>
Diffstat (limited to 'repo')
-rwxr-xr-xrepo6
1 files changed, 5 insertions, 1 deletions
diff --git a/repo b/repo
index 1977d635..75fe9ec2 100755
--- a/repo
+++ b/repo
@@ -28,7 +28,7 @@ if __name__ == '__main__':
28del magic 28del magic
29 29
30# increment this whenever we make important changes to this script 30# increment this whenever we make important changes to this script
31VERSION = (1, 14) 31VERSION = (1, 15)
32 32
33# increment this if the MAINTAINER_KEYS block is modified 33# increment this if the MAINTAINER_KEYS block is modified
34KEYRING_VERSION = (1,0) 34KEYRING_VERSION = (1,0)
@@ -125,6 +125,10 @@ group.add_option('--reference',
125group.add_option('--depth', type='int', default=None, 125group.add_option('--depth', type='int', default=None,
126 dest='depth', 126 dest='depth',
127 help='create a shallow clone with given depth; see git clone') 127 help='create a shallow clone with given depth; see git clone')
128group.add_option('-g', '--groups',
129 dest='groups', default="",
130 help='restrict manifest projects to ones with a specified group',
131 metavar='GROUP')
128 132
129 133
130# Tool 134# Tool