summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2012-04-16 10:36:08 -0700
committerShawn O. Pearce <sop@google.com>2012-04-23 12:39:05 -0700
commit971de8ea7b7e474a4d9253b6c9f47da3f1130973 (patch)
treed8ac52741957b38d57d15f208e57b984d71ddc19 /repo
parent24c130884018364f91baa8de0ff3541f4c32d1bb (diff)
downloadgit-repo-971de8ea7b7e474a4d9253b6c9f47da3f1130973.tar.gz
Refine groups functionality
Every project is in group "default". "-default" does not remove it from this project. All group names specified in the manifest are positive names as opposed to a mix of negative and positive. Specified groups are resolved in order. If init is supplied with --groups="group1,-group2", the following describes the project selection when syncing: * all projects in "group1" will be added, and * all projects in "group2" will be removed. Change-Id: I1df3dcdb64bbd4cd80d675f9b2d3becbf721f661
Diffstat (limited to 'repo')
-rwxr-xr-xrepo4
1 files changed, 2 insertions, 2 deletions
diff --git a/repo b/repo
index 75fe9ec2..0aabc0d8 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, 15) 31VERSION = (1, 16)
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)
@@ -126,7 +126,7 @@ group.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', 128group.add_option('-g', '--groups',
129 dest='groups', 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')
132 132