@@ -45,35 +45,43 @@ const Usage = `usage: git-sizer [OPTS]
45
45
46
46
Reference selection:
47
47
48
- By default, git-sizer processes all Git objects that are reachable from any
49
- reference. The following options can be used to limit which references to
50
- include . The last rule matching a reference determines whether that reference
51
- is processed:
48
+ By default, git-sizer processes all Git objects that are reachable
49
+ from any reference. The following options can be used to limit which
50
+ references to process . The last rule matching a reference determines
51
+ whether that reference is processed.
52
52
53
53
--[no-]branches process [don't process] branches
54
54
--[no-]tags process [don't process] tags
55
- --[no-]remotes process [don't process] remote-tracking references
55
+ --[no-]remotes process [don't process] remote-tracking
56
+ references
56
57
--[no-]notes process [don't process] git-notes references
57
58
--[no-]stash process [don't process] refs/stash
58
- --include PREFIX process references with the specified PREFIX
59
- (e.g., '--include=refs/remotes/origin')
60
- --include-regexp REGEXP process references matching the specified
61
- regular expression (e.g.,
62
- '--include-regexp=refs/tags/release-.*')
63
- --exclude PREFIX don't process references with the specified
64
- PREFIX (e.g., '--exclude=refs/changes')
65
- --exclude-regexp REGEXP don't process references matching the specified
66
- regular expression
67
- --refgroup=NAME process reference in group defined by gitconfig:
68
- 'refgroup.NAME.include',
69
- 'refgroup.NAME.includeRegexp',
70
- 'refgroup.NAME.exclude', and
71
- 'refgroup.NAME.excludeRegexp' as above.
59
+ --include PREFIX, --exclude PREFIX
60
+ process [don't process] references with the
61
+ specified PREFIX (e.g.,
62
+ '--include=refs/remotes/origin')
63
+ --include /REGEXP/, --exclude /REGEXP/
64
+ process [don't process] references matching the
65
+ specified regular expression (e.g.,
66
+ '--include=refs/tags/release-.*')
67
+ --include @REFGROUP, --exclude @REFGROUP
68
+ process [don't process] references in the
69
+ specified reference group (see below)
72
70
--show-refs show which refs are being included/excluded
73
71
74
- Prefixes must match at a boundary; for example 'refs/foo' matches
75
- 'refs/foo' and 'refs/foo/bar' but not 'refs/foobar'. Regular
76
- expression patterns must match the full reference name.
72
+ PREFIX must match at a boundary; for example 'refs/foo' matches
73
+ 'refs/foo' and 'refs/foo/bar' but not 'refs/foobar'.
74
+
75
+ REGEXP patterns must match the full reference name.
76
+
77
+ REFGROUP can be the name of a predefined reference group ('branches',
78
+ 'tags', 'remotes', 'notes', or 'stash'), or one defined via
79
+ gitconfig settings like the following (these can be repeated):
80
+
81
+ * 'refgroup.REFGROUP.include=PREFIX'
82
+ * 'refgroup.REFGROUP.includeRegexp=REGEXP'
83
+ * 'refgroup.REFGROUP.exclude=PREFIX'
84
+ * 'refgroup.REFGROUP.excludeRegexp=REGEXP'
77
85
78
86
`
79
87
0 commit comments