git-multi 1.2.1 → 2.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 +4 -4
- data/lib/git/multi/gemspec.rb +3 -3
- data/lib/git/multi/settings.rb +4 -10
- data/lib/git/multi/version.rb +1 -1
- data/lib/git/multi.rb +2 -2
- data/man/git-multi.1 +6 -6
- data/man/git-multi.erb +9 -8
- data/man/git-multi.html +11 -10
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64099842d760a6707023b63b428934a14ab4f07e146db6e39818008a77d2b827
|
4
|
+
data.tar.gz: c8c664a4cc5c837cb99102b14bbc706acbe04f7d7adf1b3ceea5e570255f69f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba020b0a40bc31977567375f0812fa7a33953de174cc5276c23b328bebb567ebd025869daf1d4fb2b148a5b8bd8e7e109dd1e6da6b3536965f3d61ddfc850493
|
7
|
+
data.tar.gz: b5e5cf66109a7b3df7f7b9f8976560f43f8a45d17c2e60b6ba3024399b12088c8d44fb7833537242610a90267d95b9e61ffab62622ab3f4b4d0061f1d31b059e
|
data/lib/git/multi/gemspec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Git
|
2
2
|
module Multi
|
3
|
-
PIM = <<~"PIM".freeze
|
3
|
+
PIM = <<~"PIM".freeze
|
4
4
|
|
5
5
|
The only required setting for \033[1mgit multi\33[0m is:
|
6
6
|
|
@@ -9,8 +9,8 @@ module Git
|
|
9
9
|
The following settings for \033[1mgit multi\33[0m are
|
10
10
|
optional, and take 0, 1 or more values:
|
11
11
|
|
12
|
-
\tgit config --global --add \033[
|
13
|
-
\tgit config --global --add \033[
|
12
|
+
\tgit config --global --add \033[1mgit.multi.users\033[0m <list_of_github_users>
|
13
|
+
\tgit config --global --add \033[1mgit.multi.organizations\033[0m <list_of_github_orgs>
|
14
14
|
|
15
15
|
Unless your top-level workarea is `${HOME}/Workarea` you should also set:
|
16
16
|
|
data/lib/git/multi/settings.rb
CHANGED
@@ -11,13 +11,7 @@ module Git
|
|
11
11
|
def setting_status(messages, valid = false, optional = true)
|
12
12
|
fields = messages.compact.join(' - ')
|
13
13
|
icon = valid ? TICK : optional ? ARROW : CROSS
|
14
|
-
|
15
|
-
print " #{fields}"
|
16
|
-
sleep 0.66
|
17
|
-
puts "\x0d#{icon}"
|
18
|
-
else
|
19
|
-
puts "#{icon} #{fields}"
|
20
|
-
end
|
14
|
+
puts "#{icon} #{fields}"
|
21
15
|
end
|
22
16
|
|
23
17
|
def file_status(file, message = 'File')
|
@@ -46,7 +40,7 @@ module Git
|
|
46
40
|
message,
|
47
41
|
File.join(abbreviate(workarea, :workarea), owner),
|
48
42
|
],
|
49
|
-
workarea
|
43
|
+
File.join(workarea, owner)
|
50
44
|
)
|
51
45
|
|
52
46
|
github_count = Git::Multi.repositories_for(owner).count
|
@@ -81,11 +75,11 @@ module Git
|
|
81
75
|
end
|
82
76
|
|
83
77
|
def home_status(home)
|
84
|
-
directory_status(['
|
78
|
+
directory_status(['${HOME}', home], home)
|
85
79
|
end
|
86
80
|
|
87
81
|
def main_workarea_status(workarea)
|
88
|
-
directory_status(['
|
82
|
+
directory_status(['${WORKAREA}', abbreviate(workarea, :home)], workarea)
|
89
83
|
end
|
90
84
|
|
91
85
|
def user_workarea_status(users)
|
data/lib/git/multi/version.rb
CHANGED
data/lib/git/multi.rb
CHANGED
@@ -34,8 +34,8 @@ module Git
|
|
34
34
|
CACHE = File.join(HOME, '.git', 'multi')
|
35
35
|
REPOSITORIES = File.join(CACHE, 'repositories.byte')
|
36
36
|
|
37
|
-
USERS = git_list('
|
38
|
-
ORGANIZATIONS = git_list('
|
37
|
+
USERS = git_list('git.multi.users')
|
38
|
+
ORGANIZATIONS = git_list('git.multi.organizations')
|
39
39
|
|
40
40
|
MAN_PAGE = File.expand_path('../../man/git-multi.1', __dir__)
|
41
41
|
HTML_PAGE = File.expand_path('../../man/git-multi.html', __dir__)
|
data/man/git-multi.1
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
.\" Title: git-multi
|
3
3
|
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
4
4
|
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
5
|
-
.\" Date: 11/
|
5
|
+
.\" Date: 11/10/2018
|
6
6
|
.\" Manual: Git Manual
|
7
7
|
.\" Source: Git 2.19.1.542.gc4df23f792.dirty
|
8
8
|
.\" Language: English
|
9
9
|
.\"
|
10
|
-
.TH "GIT\-MULTI" "1" "11/
|
10
|
+
.TH "GIT\-MULTI" "1" "11/10/2018" "Git 2\&.19\&.1\&.542\&.gc4df23" "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 \fBv2\&.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:
|
@@ -63,11 +63,11 @@ and\&...
|
|
63
63
|
.sp
|
64
64
|
.SH "DESCRIPTION"
|
65
65
|
.sp
|
66
|
-
Convenient way to execute the same git command in a set of related
|
66
|
+
Convenient way to execute the same git command in a set of related repositories, which could be all GitHub repos for a given user, or all repos for a given GitHub organization\&.
|
67
67
|
.sp
|
68
|
-
|
68
|
+
Multipe users and organizations can be configured, and by default \fBgit multi\fR operates on all repositories for all users and all orgs; to limit the operation to a single user or a single org, the optional \fB++<multi_repo>\fR argument can be used\&.
|
69
69
|
.sp
|
70
|
-
|
70
|
+
The list of repos for a user or an org is determined via a GitHub API v3 call and cached locally \fI(in binary format)\fR for performance and offline usage\&.
|
71
71
|
.SH "OPTIONS"
|
72
72
|
.PP
|
73
73
|
\-\-version
|
data/man/git-multi.erb
CHANGED
@@ -41,16 +41,17 @@ and...
|
|
41
41
|
DESCRIPTION
|
42
42
|
-----------
|
43
43
|
|
44
|
-
Convenient way to execute the same git command in a set of related
|
45
|
-
|
46
|
-
|
44
|
+
Convenient way to execute the same git command in a set of related
|
45
|
+
repositories, which could be all GitHub repos for a given user, or
|
46
|
+
all repos for a given GitHub organization.
|
47
47
|
|
48
|
-
|
49
|
-
|
48
|
+
Multipe users and organizations can be configured, and by default
|
49
|
+
`git multi` operates on all repositories for all users and all orgs;
|
50
|
+
to limit the operation to a single user or a single org, the optional
|
51
|
+
`++<multi_repo>` argument can be used.
|
50
52
|
|
51
|
-
|
52
|
-
and
|
53
|
-
a single organization, the optional `++<multi_repo>` argument can be used.
|
53
|
+
The list of repos for a user or an org is determined via a GitHub API v3 call
|
54
|
+
and cached locally '(in binary format)' for performance and offline usage.
|
54
55
|
|
55
56
|
OPTIONS
|
56
57
|
-------
|
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>v2.0.0</code> of <em>git multi</em> … hooray!</p></div>
|
752
752
|
</div>
|
753
753
|
</div>
|
754
754
|
<div class="sect1">
|
@@ -783,14 +783,15 @@ argument to limit the operation to the list of repositories in the referenced
|
|
783
783
|
<div class="sect1">
|
784
784
|
<h2 id="_description">DESCRIPTION</h2>
|
785
785
|
<div class="sectionbody">
|
786
|
-
<div class="paragraph"><p>Convenient way to execute the same git command in a set of related
|
787
|
-
|
788
|
-
|
789
|
-
<div class="paragraph"><p>
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
a
|
786
|
+
<div class="paragraph"><p>Convenient way to execute the same git command in a set of related
|
787
|
+
repositories, which could be all GitHub repos for a given user, or
|
788
|
+
all repos for a given GitHub organization.</p></div>
|
789
|
+
<div class="paragraph"><p>Multipe users and organizations can be configured, and by default
|
790
|
+
<code>git multi</code> operates on all repositories for all users and all orgs;
|
791
|
+
to limit the operation to a single user or a single org, the optional
|
792
|
+
<code>++<multi_repo></code> argument can be used.</p></div>
|
793
|
+
<div class="paragraph"><p>The list of repos for a user or an org is determined via a GitHub API v3 call
|
794
|
+
and cached locally <em>(in binary format)</em> for performance and offline usage.</p></div>
|
794
795
|
</div>
|
795
796
|
</div>
|
796
797
|
<div class="sect1">
|
@@ -1200,7 +1201,7 @@ the <code>jq</code> command-line utility:
|
|
1200
1201
|
<div id="footer">
|
1201
1202
|
<div id="footer-text">
|
1202
1203
|
Last updated
|
1203
|
-
2018-11-
|
1204
|
+
2018-11-10 08:44:16 GMT
|
1204
1205
|
</div>
|
1205
1206
|
</div>
|
1206
1207
|
</body>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-multi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Vandenberk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -111,11 +111,11 @@ metadata: {}
|
|
111
111
|
post_install_message: "\nThe only required setting for \e[1mgit multi\e[0m is:\n\n\tgit
|
112
112
|
config --global --add \e[1mgithub.token\e[0m <your_github_oauth_token>\n\nThe following
|
113
113
|
settings for \e[1mgit multi\e[0m are\noptional, and take 0, 1 or more values:\n\n\tgit
|
114
|
-
config --global --add \e[
|
115
|
-
--global --add \e[
|
116
|
-
top-level workarea is `${HOME}/Workarea` you should also set:\n\n\tgit config
|
117
|
-
--add \e[1mgit.multi.workarea\e[0m <your_root_workarea>\n\nThanks for using
|
118
|
-
multi\e[0m ... the ultimate multi-repo utility for git!\n\n"
|
114
|
+
config --global --add \e[1mgit.multi.users\e[0m <list_of_github_users>\n\tgit config
|
115
|
+
--global --add \e[1mgit.multi.organizations\e[0m <list_of_github_orgs>\n\nUnless
|
116
|
+
your top-level workarea is `${HOME}/Workarea` you should also set:\n\n\tgit config
|
117
|
+
--global --add \e[1mgit.multi.workarea\e[0m <your_root_workarea>\n\nThanks for using
|
118
|
+
\e[1mgit multi\e[0m ... the ultimate multi-repo utility for git!\n\n"
|
119
119
|
rdoc_options: []
|
120
120
|
require_paths:
|
121
121
|
- lib
|