git-multi 4.0.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.pryrc +10 -4
- data/.rubocop.yml +3 -7
- data/.ruby-version +1 -1
- data/Gemfile.lock +26 -21
- data/exe/git-multi +2 -2
- data/git-multi.gemspec +1 -1
- data/lib/ext/dir.rb +3 -3
- data/lib/ext/string.rb +4 -6
- data/lib/git/hub.rb +4 -6
- data/lib/git/multi.rb +0 -3
- data/lib/git/multi/commands.rb +0 -2
- data/lib/git/multi/config.rb +0 -2
- data/lib/git/multi/report.rb +1 -3
- data/lib/git/multi/version.rb +1 -1
- data/man/git-multi.1 +6 -6
- data/man/git-multi.html +4 -4
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5005557fa2d73eb4101db22dd204c876c6188f39a91325fca56610fe0174d399
|
4
|
+
data.tar.gz: '08c86b9b8f3db86b7f9a1e13f9a7a649af8b586933a746f619c8e9d0fb3329ea'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864abb46e6adc5a22072b831631dcb1b5daedc45fcccbc8a0207ed47fb28896b183cca26efdb191771b5df7bc4c44265bb14af9c3cf6456bab6d05c4a708401c
|
7
|
+
data.tar.gz: 4aba904daae482a352e7aef74ad47bcaa5ee56085ea59f092a52c0d0bf92294e0db7e901f1e0d9f10c4c201943afea151bfecf099475cb32e08d9979b1d29a97
|
data/.pryrc
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'git/multi'
|
5
5
|
|
6
6
|
# this loads all 'git multi' contribs
|
7
|
-
Dir.glob File.join(__dir__, 'contrib', '
|
7
|
+
Dir.glob File.join(__dir__, 'contrib', '**', '*.rb'), &method(:require)
|
8
8
|
|
9
9
|
# configure a logger
|
10
10
|
require 'logger'
|
@@ -28,15 +28,21 @@ end
|
|
28
28
|
|
29
29
|
# utility function to set pry context
|
30
30
|
# to an instance of <Octokit::Client>
|
31
|
-
def client
|
31
|
+
def client
|
32
|
+
pry(Git::Hub.send(:client))
|
33
|
+
end
|
32
34
|
|
33
35
|
# utility function to set pry context
|
34
36
|
# to the Array of github repositories
|
35
|
-
def repos
|
37
|
+
def repos
|
38
|
+
pry(Git::Multi.repositories)
|
39
|
+
end
|
36
40
|
|
37
41
|
# utility function to set pry context
|
38
42
|
# to the various 'git multi' commands:
|
39
|
-
def cmds
|
43
|
+
def cmds
|
44
|
+
pry(Git::Multi::Commands)
|
45
|
+
end
|
40
46
|
|
41
47
|
# utility function to set context
|
42
48
|
# to the named github repository:
|
data/.rubocop.yml
CHANGED
@@ -1,14 +1,11 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.6
|
3
|
+
NewCops: enable
|
3
4
|
Exclude:
|
4
5
|
- 'doc/*'
|
5
6
|
- 'tmp/*'
|
6
7
|
- 'pkg/*'
|
7
8
|
|
8
|
-
Layout/EmptyLinesAroundClassBody:
|
9
|
-
Enabled: false
|
10
|
-
Layout/EmptyLinesAroundModuleBody:
|
11
|
-
Enabled: false
|
12
9
|
Layout/LineLength:
|
13
10
|
Enabled: false
|
14
11
|
|
@@ -34,8 +31,7 @@ Style/NestedTernaryOperator:
|
|
34
31
|
Enabled: false
|
35
32
|
Style/RedundantBegin:
|
36
33
|
Enabled: false
|
37
|
-
|
38
|
-
Enabled: false
|
34
|
+
|
39
35
|
Style/TrailingCommaInArguments:
|
40
36
|
Enabled: false
|
41
37
|
Style/TrailingCommaInArrayLiteral:
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.6
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
git-multi (
|
5
|
-
faraday (
|
4
|
+
git-multi (5.0.0)
|
5
|
+
faraday (~> 1)
|
6
6
|
octokit (~> 4)
|
7
7
|
|
8
8
|
GEM
|
@@ -10,42 +10,47 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
addressable (2.7.0)
|
12
12
|
public_suffix (>= 2.0.2, < 5.0)
|
13
|
-
ast (2.4.
|
14
|
-
coderay (1.1.
|
15
|
-
faraday (1.0.
|
13
|
+
ast (2.4.1)
|
14
|
+
coderay (1.1.3)
|
15
|
+
faraday (1.0.1)
|
16
16
|
multipart-post (>= 1.2, < 3)
|
17
17
|
interception (0.5)
|
18
|
-
|
19
|
-
|
20
|
-
minitest (5.14.0)
|
18
|
+
method_source (1.0.0)
|
19
|
+
minitest (5.14.1)
|
21
20
|
multipart-post (2.1.1)
|
22
|
-
octokit (4.
|
21
|
+
octokit (4.18.0)
|
23
22
|
faraday (>= 0.9)
|
24
23
|
sawyer (~> 0.8.0, >= 0.5.3)
|
25
|
-
parallel (1.19.
|
26
|
-
parser (2.7.
|
27
|
-
ast (~> 2.4.
|
28
|
-
pry (0.
|
29
|
-
coderay (~> 1.1
|
30
|
-
method_source (~>
|
31
|
-
pry-rescue (1.5.
|
24
|
+
parallel (1.19.2)
|
25
|
+
parser (2.7.1.4)
|
26
|
+
ast (~> 2.4.1)
|
27
|
+
pry (0.13.1)
|
28
|
+
coderay (~> 1.1)
|
29
|
+
method_source (~> 1.0)
|
30
|
+
pry-rescue (1.5.1)
|
32
31
|
interception (>= 0.5)
|
33
32
|
pry (>= 0.12.0)
|
34
|
-
public_suffix (4.0.
|
33
|
+
public_suffix (4.0.5)
|
35
34
|
rainbow (3.0.0)
|
36
35
|
rake (13.0.1)
|
37
|
-
|
38
|
-
|
36
|
+
regexp_parser (1.7.1)
|
37
|
+
rexml (3.2.4)
|
38
|
+
rubocop (0.85.1)
|
39
39
|
parallel (~> 1.10)
|
40
40
|
parser (>= 2.7.0.1)
|
41
41
|
rainbow (>= 2.2.2, < 4.0)
|
42
|
+
regexp_parser (>= 1.7)
|
43
|
+
rexml
|
44
|
+
rubocop-ast (>= 0.0.3)
|
42
45
|
ruby-progressbar (~> 1.7)
|
43
|
-
unicode-display_width (>= 1.4.0, <
|
46
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
47
|
+
rubocop-ast (0.0.3)
|
48
|
+
parser (>= 2.7.0.1)
|
44
49
|
ruby-progressbar (1.10.1)
|
45
50
|
sawyer (0.8.2)
|
46
51
|
addressable (>= 2.3.5)
|
47
52
|
faraday (> 0.8, < 2.0)
|
48
|
-
unicode-display_width (1.
|
53
|
+
unicode-display_width (1.7.0)
|
49
54
|
|
50
55
|
PLATFORMS
|
51
56
|
ruby
|
data/exe/git-multi
CHANGED
@@ -11,8 +11,8 @@ if !STDIN.tty?
|
|
11
11
|
multi_repo = STDIN.readlines.map(&:strip).map(&:freeze).freeze
|
12
12
|
# reopen STDIN (to ensure all `Kernel.system` based cmds work)
|
13
13
|
STDIN.reopen('/dev/tty')
|
14
|
-
elsif (command = ARGV.shift)&.start_with?
|
15
|
-
multi_repo = command
|
14
|
+
elsif (command = ARGV.shift)&.start_with?('++')
|
15
|
+
multi_repo = command.delete('++')
|
16
16
|
command = nil
|
17
17
|
end
|
18
18
|
|
data/git-multi.gemspec
CHANGED
data/lib/ext/dir.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
class Dir
|
2
2
|
def git_repos(subdir = '*')
|
3
3
|
Dir.glob(File.join(path, subdir, '*', '.git')).map { |path_to_git_dir|
|
4
|
-
path_to_git_repo = File.dirname(path_to_git_dir)
|
5
|
-
repo_name = path_to_git_repo[%r{[
|
6
|
-
def repo_name.full_name() self; end
|
4
|
+
path_to_git_repo = File.dirname(path_to_git_dir) # without "/.git"
|
5
|
+
repo_name = path_to_git_repo[%r{[^/]+/[^/]+\z}] # e.g. "pvdb/git-multi"
|
6
|
+
def repo_name.full_name() self; end # rubocop:disable Style/SingleLineMethods
|
7
7
|
repo_name
|
8
8
|
}
|
9
9
|
end
|
data/lib/ext/string.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
# rubocop:disable Layout/EmptyLineBetweenDefs
|
2
|
-
|
3
1
|
class String
|
4
|
-
|
2
|
+
# rubocop:disable Layout/EmptyLineBetweenDefs
|
3
|
+
# rubocop:disable Style/SingleLineMethods
|
5
4
|
def colorize(color_code) "\e[#{color_code}m#{self}\e[0m"; end
|
6
5
|
|
7
6
|
def bold() colorize('1'); end
|
@@ -12,7 +11,6 @@ class String
|
|
12
11
|
def green() colorize('32'); end
|
13
12
|
|
14
13
|
def undent() gsub(/^.{#{slice(/^ +/).length}}/, ''); end
|
15
|
-
|
14
|
+
# rubocop:enable Style/SingleLineMethods
|
15
|
+
# rubocop:enable Layout/EmptyLineBetweenDefs
|
16
16
|
end
|
17
|
-
|
18
|
-
# rubocop:enable Layout/EmptyLineBetweenDefs
|
data/lib/git/hub.rb
CHANGED
@@ -2,10 +2,10 @@ require 'octokit'
|
|
2
2
|
|
3
3
|
begin
|
4
4
|
require 'net/http/persistent'
|
5
|
-
Octokit.middleware.
|
6
|
-
Faraday::Adapter::
|
7
|
-
|
8
|
-
|
5
|
+
if Octokit.middleware.adapter == Faraday::Adapter::NetHttp
|
6
|
+
adapter = Faraday::RackBuilder::Handler.new(Faraday::Adapter::NetHttpPersistent)
|
7
|
+
Octokit.middleware.instance_variable_set(:'@adapter', adapter)
|
8
|
+
end
|
9
9
|
rescue LoadError
|
10
10
|
# NOOP - `Net::HTTP::Persistent` is optional, so
|
11
11
|
# if the gem isn't installed, then we run with the
|
@@ -16,7 +16,6 @@ end
|
|
16
16
|
|
17
17
|
module Git
|
18
18
|
module Hub
|
19
|
-
|
20
19
|
module_function
|
21
20
|
|
22
21
|
def client
|
@@ -104,6 +103,5 @@ module Git
|
|
104
103
|
# type can be one of: all, public, private, forks, sources, member
|
105
104
|
@org_repositories[[org, type]]
|
106
105
|
end
|
107
|
-
|
108
106
|
end
|
109
107
|
end
|
data/lib/git/multi.rb
CHANGED
@@ -139,7 +139,6 @@ module Git
|
|
139
139
|
#
|
140
140
|
|
141
141
|
module Nike
|
142
|
-
|
143
142
|
# rubocop:disable Metrics/PerceivedComplexity
|
144
143
|
# rubocop:disable Metrics/CyclomaticComplexity
|
145
144
|
def just_do_it(interactive, pipelined, captured = nil, options = {})
|
@@ -182,7 +181,6 @@ module Git
|
|
182
181
|
end
|
183
182
|
end
|
184
183
|
end
|
185
|
-
|
186
184
|
end
|
187
185
|
|
188
186
|
def repositories
|
@@ -293,6 +291,5 @@ module Git
|
|
293
291
|
File.directory? repo.local_path
|
294
292
|
}
|
295
293
|
end
|
296
|
-
|
297
294
|
end
|
298
295
|
end
|
data/lib/git/multi/commands.rb
CHANGED
data/lib/git/multi/config.rb
CHANGED
data/lib/git/multi/report.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
module Git
|
2
2
|
module Multi
|
3
3
|
module Report
|
4
|
-
|
5
4
|
TICK = ['2714'.hex].pack('U*').green.freeze
|
6
5
|
CROSS = ['2718'.hex].pack('U*').red.freeze
|
7
6
|
ARROW = ['2794'.hex].pack('U*').blue.freeze
|
@@ -77,7 +76,7 @@ module Git
|
|
77
76
|
elsif token.empty?
|
78
77
|
'(empty)'
|
79
78
|
else
|
80
|
-
"#{'*' * 36}#{token[36
|
79
|
+
"#{'*' * 36}#{token[36..]}"
|
81
80
|
end
|
82
81
|
end
|
83
82
|
|
@@ -128,7 +127,6 @@ module Git
|
|
128
127
|
false
|
129
128
|
)
|
130
129
|
end
|
131
|
-
|
132
130
|
end
|
133
131
|
end
|
134
132
|
end
|
data/lib/git/multi/version.rb
CHANGED
data/man/git-multi.1
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
'\" t
|
2
2
|
.\" Title: git-multi
|
3
|
-
.\" Author: [FIXME: author] [see http://docbook.
|
4
|
-
.\" Generator: DocBook XSL Stylesheets
|
5
|
-
.\" Date:
|
3
|
+
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
|
4
|
+
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
|
5
|
+
.\" Date: 06/20/2020
|
6
6
|
.\" Manual: Git Manual
|
7
|
-
.\" Source: Git 2.
|
7
|
+
.\" Source: Git 2.27.0.112.g101b3204f3.dirty
|
8
8
|
.\" Language: English
|
9
9
|
.\"
|
10
|
-
.TH "GIT\-MULTI" "1" "
|
10
|
+
.TH "GIT\-MULTI" "1" "06/20/2020" "Git 2\&.27\&.0\&.112\&.g101b32" "Git Manual"
|
11
11
|
.\" -----------------------------------------------------------------
|
12
12
|
.\" * Define some portability stuff
|
13
13
|
.\" -----------------------------------------------------------------
|
@@ -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 \fBv5\&.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
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
5
5
|
<head>
|
6
6
|
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
|
7
|
-
<meta name="generator" content="AsciiDoc
|
7
|
+
<meta name="generator" content="AsciiDoc 9.0.0" />
|
8
8
|
<title>git-multi(1)</title>
|
9
9
|
<style type="text/css">
|
10
10
|
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
|
@@ -436,7 +436,7 @@ thead, p.table.header {
|
|
436
436
|
p.table {
|
437
437
|
margin-top: 0;
|
438
438
|
}
|
439
|
-
/* Because the table frame attribute is
|
439
|
+
/* Because the table frame attribute is overridden by CSS in most browsers. */
|
440
440
|
div.tableblock > table[frame="void"] {
|
441
441
|
border-style: none;
|
442
442
|
}
|
@@ -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>v5.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
jq command-line utility: |
|
1222
1222
|
<div id="footer">
|
1223
1223
|
<div id="footer-text">
|
1224
1224
|
Last updated
|
1225
|
-
2020-
|
1225
|
+
2020-06-20 07:51:21 BST
|
1226
1226
|
</div>
|
1227
1227
|
</div>
|
1228
1228
|
</body>
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-multi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Vandenberk
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: octokit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,9 +188,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
|
-
|
192
|
-
|
193
|
-
signing_key:
|
191
|
+
rubygems_version: 3.0.3
|
192
|
+
signing_key:
|
194
193
|
specification_version: 4
|
195
194
|
summary: The ultimate multi-repo utility for git!
|
196
195
|
test_files: []
|