git-multi 3.0.3 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/exe/git-multi +47 -40
- data/lib/git/multi.rb +7 -6
- data/lib/git/multi/commands.rb +1 -1
- data/lib/git/multi/report.rb +1 -1
- data/lib/git/multi/version.rb +1 -1
- data/man/git-multi.1 +1 -1
- data/man/git-multi.html +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae3ea0db8c3ed8b96a4c03075a8fc03776e263dc
|
4
|
+
data.tar.gz: f5bc88dda1be61636658ecdb265afed9059d81de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae0f27414bc44b20290191c1e126bea2a75fb248bbf64a0f361ffc606a0b55d6fd3f916185874ad6afdb24821972002adbd95c9b05aea47a09e19278c76f881f
|
7
|
+
data.tar.gz: 94649a8d55edbcc6a4ef5e90313d6e46c9357ac87117036e555c17abba1a0609f64d1e5b79d1734b42797cf163e90482c21676fc4ea6daeae4495b327e04a931
|
data/Gemfile.lock
CHANGED
data/exe/git-multi
CHANGED
@@ -4,51 +4,58 @@ lib = File.expand_path('../lib', __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require 'git/multi'
|
6
6
|
|
7
|
-
|
7
|
+
multi_repo = command = nil
|
8
|
+
|
9
|
+
if !STDIN.tty?
|
10
|
+
# read list of repo full names from STDIN (~pseudo multi repo)
|
11
|
+
multi_repo = STDIN.readlines.map(&:strip).map(&:freeze).freeze
|
12
|
+
# reopen STDIN (to ensure all `Kernel.system` based cmds work)
|
13
|
+
STDIN.reopen('/dev/tty')
|
14
|
+
elsif (command = ARGV.shift)&.start_with? '++'
|
8
15
|
multi_repo = command[2..-1]
|
9
|
-
|
10
|
-
command = nil
|
11
|
-
else
|
12
|
-
abort \
|
13
|
-
"Unknown multi repo: #{multi_repo}\n\n" \
|
14
|
-
'(use --report to list all known multi repos)'
|
15
|
-
end
|
16
|
+
command = nil
|
16
17
|
end
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
19
|
+
begin
|
20
|
+
case (command ||= ARGV.shift)
|
21
|
+
when /\A--/
|
22
|
+
case command
|
23
|
+
when '--version' then Git::Multi::Commands.version
|
24
|
+
when '--help' then Git::Multi::Commands.help
|
25
|
+
when '--html' then Git::Multi::Commands.html
|
26
|
+
when '--report' then Git::Multi::Commands.report(multi_repo)
|
27
|
+
when '--count' then Git::Multi::Commands.count
|
28
|
+
when '--refresh' then Git::Multi::Commands.refresh
|
29
|
+
when '--json' then Git::Multi::Commands.json(multi_repo)
|
30
|
+
when '--list' then Git::Multi::Commands.list(multi_repo)
|
31
|
+
when '--archived'then Git::Multi::Commands.archived(multi_repo)
|
32
|
+
when '--forked' then Git::Multi::Commands.forked(multi_repo)
|
33
|
+
when '--private' then Git::Multi::Commands.private(multi_repo)
|
34
|
+
when '--paths' then Git::Multi::Commands.paths(multi_repo)
|
35
|
+
when '--missing' then Git::Multi::Commands.missing(multi_repo)
|
36
|
+
when '--clone' then Git::Multi::Commands.clone(multi_repo)
|
37
|
+
when '--stale' then Git::Multi::Commands.stale(multi_repo)
|
38
|
+
when '--excess' then Git::Multi::Commands.excess(multi_repo)
|
39
|
+
when '--spurious'then Git::Multi::Commands.spurious(multi_repo)
|
40
|
+
when '--query' then Git::Multi::Commands.query(ARGV, multi_repo)
|
41
|
+
when '--find' then Git::Multi::Commands.find(ARGV, multi_repo)
|
42
|
+
when '--eval' then Git::Multi::Commands.eval(ARGV, multi_repo)
|
43
|
+
when '--raw' then Git::Multi::Commands.raw(ARGV, multi_repo)
|
44
|
+
when '--shell' then Git::Multi::Commands.shell(ARGV, multi_repo)
|
45
|
+
else
|
46
|
+
abort \
|
47
|
+
"Unknown 'git multi' command: #{command}\n\n" \
|
48
|
+
'(use --help/-h to list all available commands)'
|
49
|
+
end
|
50
|
+
when nil, '', '-h'
|
51
|
+
Git::Multi::Commands.help
|
43
52
|
else
|
44
|
-
|
45
|
-
"Unknown 'git multi' command: #{command}\n\n" \
|
46
|
-
'(use --help/-h to list all available commands)'
|
53
|
+
Git::Multi::Commands.exec(command, ARGV, multi_repo)
|
47
54
|
end
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
55
|
+
rescue ArgumentError
|
56
|
+
abort \
|
57
|
+
"Unknown multi repo: #{$ERROR_INFO.message}\n\n" \
|
58
|
+
'(use `git multi --report` to list all known multi repos)'
|
52
59
|
end
|
53
60
|
|
54
61
|
# That's all Folks!
|
data/lib/git/multi.rb
CHANGED
@@ -216,20 +216,21 @@ module Git
|
|
216
216
|
#
|
217
217
|
|
218
218
|
def repositories_for(multi_repo = nil)
|
219
|
-
case (owner = superproject = multi_repo)
|
219
|
+
case (owner = superproject = full_names = multi_repo)
|
220
220
|
when nil
|
221
221
|
repositories # all of them
|
222
|
+
when Array
|
223
|
+
repositories.find_all { |repository|
|
224
|
+
full_names.include?(repository.full_name)
|
225
|
+
}
|
222
226
|
when *USERS, *ORGANIZATIONS
|
223
227
|
repositories.find_all { |repository|
|
224
228
|
repository.owner.login == owner
|
225
229
|
}
|
226
230
|
when *SUPERPROJECTS
|
227
|
-
|
228
|
-
repositories.find_all { |repository|
|
229
|
-
full_names.include?(repository.full_name)
|
230
|
-
}
|
231
|
+
repositories_for(full_names_for(superproject))
|
231
232
|
else
|
232
|
-
raise
|
233
|
+
raise ArgumentError, multi_repo
|
233
234
|
end
|
234
235
|
end
|
235
236
|
|
data/lib/git/multi/commands.rb
CHANGED
data/lib/git/multi/report.rb
CHANGED
data/lib/git/multi/version.rb
CHANGED
data/man/git-multi.1
CHANGED
@@ -31,7 +31,7 @@
|
|
31
31
|
git-multi \- execute the same git command in multiple repositories
|
32
32
|
.SH "VERSION"
|
33
33
|
.sp
|
34
|
-
This is \
|
34
|
+
This is \fBv4\&.0\&.0\fR of \fIgit multi\fR \&... hooray!
|
35
35
|
.SH "SYNOPSIS"
|
36
36
|
.sp
|
37
37
|
There are some options for \fBgit multi\fR itself, in which case it is invoked as follows:
|
data/man/git-multi.html
CHANGED
@@ -748,7 +748,7 @@ git-multi(1) Manual Page
|
|
748
748
|
<div class="sect1">
|
749
749
|
<h2 id="_version">VERSION</h2>
|
750
750
|
<div class="sectionbody">
|
751
|
-
<div class="paragraph"><p>This is <code>
|
751
|
+
<div class="paragraph"><p>This is <code>v4.0.0</code> of <em>git multi</em> … hooray!</p></div>
|
752
752
|
</div>
|
753
753
|
</div>
|
754
754
|
<div class="sect1">
|
@@ -1222,7 +1222,7 @@ the <code>jq</code> command-line utility:
|
|
1222
1222
|
<div id="footer">
|
1223
1223
|
<div id="footer-text">
|
1224
1224
|
Last updated
|
1225
|
-
2020-01-25
|
1225
|
+
2020-01-25 11:55:56 GMT
|
1226
1226
|
</div>
|
1227
1227
|
</div>
|
1228
1228
|
</body>
|