diff options
| author | Conley Owens <cco3@android.com> | 2012-04-16 10:36:08 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2012-04-23 12:39:05 -0700 |
| commit | 971de8ea7b7e474a4d9253b6c9f47da3f1130973 (patch) | |
| tree | d8ac52741957b38d57d15f208e57b984d71ddc19 /repo | |
| parent | 24c130884018364f91baa8de0ff3541f4c32d1bb (diff) | |
| download | git-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-x | repo | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -28,7 +28,7 @@ if __name__ == '__main__': | |||
| 28 | del magic | 28 | del 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 |
| 31 | VERSION = (1, 15) | 31 | VERSION = (1, 16) |
| 32 | 32 | ||
| 33 | # increment this if the MAINTAINER_KEYS block is modified | 33 | # increment this if the MAINTAINER_KEYS block is modified |
| 34 | KEYRING_VERSION = (1,0) | 34 | KEYRING_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') |
| 128 | group.add_option('-g', '--groups', | 128 | group.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 | ||
