git-multi 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/Rakefile +21 -0
- data/exe/git-multi +1 -0
- data/lib/git/multi/commands.rb +5 -10
- data/lib/git/multi/version.rb +1 -1
- data/lib/git/multi.rb +2 -1
- data/man/git-multi.1 +551 -0
- data/{doc/git-multi.txt → man/git-multi.erb} +15 -8
- data/man/git-multi.html +1186 -0
- metadata +5 -3
@@ -6,6 +6,11 @@ NAME
|
|
6
6
|
|
7
7
|
git-multi - execute the same git command in multiple repositories
|
8
8
|
|
9
|
+
VERSION
|
10
|
+
-------
|
11
|
+
|
12
|
+
This is `v<%= Git::Multi::VERSION %>` of 'git multi' ... hooray!
|
13
|
+
|
9
14
|
SYNOPSIS
|
10
15
|
--------
|
11
16
|
|
@@ -33,7 +38,10 @@ OPTIONS
|
|
33
38
|
-------
|
34
39
|
|
35
40
|
--help::
|
36
|
-
you're looking at it
|
41
|
+
you're looking at it: show the man page
|
42
|
+
|
43
|
+
--html::
|
44
|
+
open the HTML version of the man page
|
37
45
|
|
38
46
|
--check::
|
39
47
|
checks all the required settings and configurations
|
@@ -133,19 +141,19 @@ find all repos for which the 'origin' remote isn't github.com
|
|
133
141
|
|
134
142
|
a kind of "repository creation" report: count the number of repos created in each quarter
|
135
143
|
|
136
|
-
git multi --eval "class ::Time; def quarter() (month.to_f / 3.0).ceil; end; end; puts format('
|
144
|
+
git multi --eval "class ::Time; def quarter() (month.to_f / 3.0).ceil; end; end; puts format('%d-Q%d', created_at.year, created_at.quarter)" | sort | uniq -c
|
137
145
|
|
138
146
|
for each repo, list all remote branches, sorted by the "age" of the last commit on each branch
|
139
147
|
|
140
|
-
git multi for-each-ref --sort="-authordate" --format="
|
148
|
+
git multi for-each-ref --sort="-authordate" --format="%(refname)%09%(authordate:relative)%09%(authorname)" refs/remotes/origin
|
141
149
|
|
142
150
|
same as above, but columnize the generated output (NOTE: replace '^I' with CTRL-V/CTRL-I in your terminal)
|
143
151
|
|
144
|
-
git multi for-each-ref --sort="-authordate" --format="
|
152
|
+
git multi for-each-ref --sort="-authordate" --format="%(refname)%09%(authordate:relative)%09%(authorname)" refs/remotes/origin | column -t -s "^I"
|
145
153
|
|
146
154
|
same as above, but refresh the list of remote branches first
|
147
155
|
|
148
|
-
git multi fetch -p ; git multi for-each-ref --sort="-authordate" --format="
|
156
|
+
git multi fetch -p ; git multi for-each-ref --sort="-authordate" --format="%(refname)%09%(authordate:relative)%09%(authorname)" refs/remotes/origin
|
149
157
|
|
150
158
|
find all Rails projects
|
151
159
|
|
@@ -161,7 +169,7 @@ find all projects that have been pushed to in the last week
|
|
161
169
|
|
162
170
|
print out the number of days since the last push to each repository
|
163
171
|
|
164
|
-
git multi --eval 'puts "
|
172
|
+
git multi --eval 'puts "%d days" % ((Time.now - pushed_at) / 60 / 60 / 24)'
|
165
173
|
|
166
174
|
find all projects that have seen activity this calendar year
|
167
175
|
|
@@ -192,7 +200,7 @@ QUERY ARGUMENTS
|
|
192
200
|
|
193
201
|
The following is a list of valid arguments for the `git multi --query` option:
|
194
202
|
|
195
|
-
|
203
|
+
<%= query_args %>
|
196
204
|
|
197
205
|
JQ INTEGRATION
|
198
206
|
--------------
|
@@ -229,4 +237,3 @@ https://developer.github.com/v3/
|
|
229
237
|
* the `jq` command-line utility:
|
230
238
|
http://stedolan.github.io/jq/
|
231
239
|
|
232
|
-
git-multi v%{vv} 1 October 2018 GIT-MULTI(1)
|