git-multi 1.0.7 → 1.0.8
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/commands.rb +5 -5
- data/lib/git/multi/gemspec.rb +7 -3
- data/lib/git/multi/settings.rb +4 -2
- data/lib/git/multi/version.rb +1 -1
- data/lib/git/multi.rb +3 -3
- data/man/git-multi.1 +4 -4
- data/man/git-multi.html +2 -2
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93cde3e72f341136423fa1e1990e92ace46e948dfd8d6d2d4e6c13bce943b830
|
4
|
+
data.tar.gz: a17ad46a34d50b4cdd16e00fc51af79d4c5f1052ee510f1d34062e79807093cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0b71c4cb69ebcfc962a9ac7874395fad25b5f311dcd9ae8698f777dec0c13608d7a596e777bfb95a39addd2329dfa67bbda2a6f7a18538084febe798b0dcf2e
|
7
|
+
data.tar.gz: cb5190bef249a60e01b1acbf40adb97e5fad1f04f36250c12cad5d968588b27cf1d0b01a4416d9b68cf4fa021499e9a53568b3e9097915f8333a372bf43c1b4e
|
data/lib/git/multi/commands.rb
CHANGED
@@ -9,14 +9,14 @@ module Git
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def check
|
12
|
-
Settings.user_status(Git::Multi::USER)
|
13
|
-
Settings.organization_status(Git::Multi::ORGANIZATIONS)
|
14
|
-
Settings.token_status(Git::Multi::TOKEN)
|
12
|
+
# Settings.user_status(Git::Multi::USER)
|
13
|
+
# Settings.organization_status(Git::Multi::ORGANIZATIONS)
|
14
|
+
# Settings.token_status(Git::Multi::TOKEN)
|
15
15
|
Settings.home_status(Git::Multi::HOME)
|
16
16
|
Settings.main_workarea_status(Git::Multi::WORKAREA)
|
17
|
-
Settings.user_workarea_status(Git::Multi::
|
17
|
+
Settings.user_workarea_status(Git::Multi::USERS)
|
18
18
|
Settings.organization_workarea_status(Git::Multi::ORGANIZATIONS)
|
19
|
-
Settings.file_status(Git::Multi::REPOSITORIES)
|
19
|
+
# Settings.file_status(Git::Multi::REPOSITORIES)
|
20
20
|
end
|
21
21
|
|
22
22
|
def help
|
data/lib/git/multi/gemspec.rb
CHANGED
@@ -2,12 +2,16 @@ module Git
|
|
2
2
|
module Multi
|
3
3
|
PIM = <<~"PIM".freeze # gem post_install_message, used in git-multi.gemspec
|
4
4
|
|
5
|
-
The required
|
5
|
+
The only required setting for \033[1mgit multi\33[0m is:
|
6
6
|
|
7
|
-
\tgit config --global --add \033[1mgithub.user\033[0m <your_github_username>
|
8
|
-
\tgit config --global --add \033[1mgithub.organizations\033[0m <your_github_orgs>
|
9
7
|
\tgit config --global --add \033[1mgithub.token\033[0m <your_github_oauth_token>
|
10
8
|
|
9
|
+
The following settings for \033[1mgit multi\33[0m are
|
10
|
+
optional, and take 0, 1 or more values:
|
11
|
+
|
12
|
+
\tgit config --global --add \033[1mgithub.users\033[0m <list_of_github_users>
|
13
|
+
\tgit config --global --add \033[1mgithub.organizations\033[0m <list_of_github_orgs>
|
14
|
+
|
11
15
|
Unless your top-level workarea is `${HOME}/Workarea` you should also set:
|
12
16
|
|
13
17
|
\tgit config --global --add \033[1mgit.multi.workarea\033[0m <your_root_workarea>
|
data/lib/git/multi/settings.rb
CHANGED
@@ -76,8 +76,10 @@ module Git
|
|
76
76
|
directory_status(['Workarea (main)', abbreviate(workarea, :home)], workarea)
|
77
77
|
end
|
78
78
|
|
79
|
-
def user_workarea_status(
|
80
|
-
|
79
|
+
def user_workarea_status(users)
|
80
|
+
users.each do |user|
|
81
|
+
workarea_status("Workarea (user: #{user})", Git::Multi::WORKAREA, user)
|
82
|
+
end
|
81
83
|
end
|
82
84
|
|
83
85
|
def organization_workarea_status(orgs)
|
data/lib/git/multi/version.rb
CHANGED
data/lib/git/multi.rb
CHANGED
@@ -35,7 +35,7 @@ module Git
|
|
35
35
|
CACHE = File.join(HOME, '.git', 'multi')
|
36
36
|
REPOSITORIES = File.join(CACHE, 'repositories.byte')
|
37
37
|
|
38
|
-
|
38
|
+
USERS = git_list('github.users')
|
39
39
|
ORGANIZATIONS = git_list('github.organizations')
|
40
40
|
|
41
41
|
MAN_PAGE = File.expand_path('../../man/git-multi.1', __dir__)
|
@@ -57,7 +57,7 @@ module Git
|
|
57
57
|
|
58
58
|
def local_repositories
|
59
59
|
(
|
60
|
-
@local_user_repositories[
|
60
|
+
USERS.map { |user| @local_user_repositories[user] } +
|
61
61
|
ORGANIZATIONS.map { |org| @local_org_repositories[org] }
|
62
62
|
).flatten
|
63
63
|
end
|
@@ -68,7 +68,7 @@ module Git
|
|
68
68
|
|
69
69
|
def github_repositories
|
70
70
|
@github_repositories ||= (
|
71
|
-
Git::Hub.user_repositories(
|
71
|
+
USERS.map { |user| Git::Hub.user_repositories(user) } +
|
72
72
|
ORGANIZATIONS.map { |org| Git::Hub.org_repositories(org) }
|
73
73
|
).flatten
|
74
74
|
end
|
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: 10/
|
5
|
+
.\" Date: 10/08/2018
|
6
6
|
.\" Manual: Git Manual
|
7
|
-
.\" Source: Git 2.19.
|
7
|
+
.\" Source: Git 2.19.1.272.gf84b9b09d.dirty
|
8
8
|
.\" Language: English
|
9
9
|
.\"
|
10
|
-
.TH "GIT\-MULTI" "1" "10/
|
10
|
+
.TH "GIT\-MULTI" "1" "10/08/2018" "Git 2\&.19\&.1\&.272\&.gf84b9b" "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 \fBv1\&.0\&.
|
34
|
+
This is \fBv1\&.0\&.8\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>v1.0.
|
751
|
+
<div class="paragraph"><p>This is <code>v1.0.8</code> of <em>git multi</em> … hooray!</p></div>
|
752
752
|
</div>
|
753
753
|
</div>
|
754
754
|
<div class="sect1">
|
@@ -1179,7 +1179,7 @@ the <code>jq</code> command-line utility:
|
|
1179
1179
|
<div id="footer">
|
1180
1180
|
<div id="footer-text">
|
1181
1181
|
Last updated
|
1182
|
-
2018-10-
|
1182
|
+
2018-10-08 19:41:38 BST
|
1183
1183
|
</div>
|
1184
1184
|
</div>
|
1185
1185
|
</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: 1.0.
|
4
|
+
version: 1.0.8
|
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-10-
|
11
|
+
date: 2018-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -109,13 +109,14 @@ homepage: https://github.com/pvdb/git-multi
|
|
109
109
|
licenses:
|
110
110
|
- MIT
|
111
111
|
metadata: {}
|
112
|
-
post_install_message: "\nThe required
|
113
|
-
config --global --add \e[1mgithub.
|
114
|
-
|
115
|
-
--add \e[1mgithub.
|
116
|
-
|
117
|
-
|
118
|
-
|
112
|
+
post_install_message: "\nThe only required setting for \e[1mgit multi\e[0m is:\n\n\tgit
|
113
|
+
config --global --add \e[1mgithub.token\e[0m <your_github_oauth_token>\n\nThe following
|
114
|
+
settings for \e[1mgit multi\e[0m are\noptional, and take 0, 1 or more values:\n\n\tgit
|
115
|
+
config --global --add \e[1mgithub.users\e[0m <list_of_github_users>\n\tgit config
|
116
|
+
--global --add \e[1mgithub.organizations\e[0m <list_of_github_orgs>\n\nUnless your
|
117
|
+
top-level workarea is `${HOME}/Workarea` you should also set:\n\n\tgit config --global
|
118
|
+
--add \e[1mgit.multi.workarea\e[0m <your_root_workarea>\n\nThanks for using \e[1mgit
|
119
|
+
multi\e[0m ... the ultimate multi-repo utility for git!\n\n"
|
119
120
|
rdoc_options: []
|
120
121
|
require_paths:
|
121
122
|
- lib
|