git 1.19.1 → 3.1.1
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/.commitlintrc.yml +38 -0
- data/.github/pull_request_template.md +8 -0
- data/.github/workflows/continuous_integration.yml +19 -21
- data/.github/workflows/enforce_conventional_commits.yml +28 -0
- data/.github/workflows/experimental_continuous_integration.yml +50 -0
- data/.github/workflows/release.yml +52 -0
- data/.gitignore +3 -0
- data/.husky/commit-msg +1 -0
- data/.release-please-manifest.json +3 -0
- data/.yardopts +0 -1
- data/CHANGELOG.md +211 -0
- data/CONTRIBUTING.md +290 -102
- data/README.md +180 -62
- data/Rakefile +7 -0
- data/git.gemspec +11 -11
- data/lib/git/author.rb +3 -2
- data/lib/git/base.rb +222 -59
- data/lib/git/branch.rb +2 -0
- data/lib/git/branches.rb +15 -14
- data/lib/git/command_line.rb +287 -0
- data/lib/git/config.rb +7 -1
- data/lib/git/diff.rb +2 -0
- data/lib/git/errors.rb +206 -0
- data/lib/git/escaped_path.rb +1 -1
- data/lib/git/index.rb +2 -1
- data/lib/git/lib.rb +604 -234
- data/lib/git/log.rb +74 -6
- data/lib/git/object.rb +80 -76
- data/lib/git/path.rb +9 -8
- data/lib/git/remote.rb +2 -0
- data/lib/git/repository.rb +2 -0
- data/lib/git/stash.rb +7 -6
- data/lib/git/stashes.rb +11 -10
- data/lib/git/status.rb +135 -25
- data/lib/git/version.rb +3 -1
- data/lib/git/working_directory.rb +2 -0
- data/lib/git/worktree.rb +2 -0
- data/lib/git/worktrees.rb +2 -0
- data/lib/git.rb +21 -7
- data/package.json +10 -0
- data/release-please-config.json +36 -0
- metadata +52 -38
- data/.github/stale.yml +0 -25
- data/Dockerfile.changelog-rs +0 -12
- data/PULL_REQUEST_TEMPLATE.md +0 -9
- data/RELEASING.md +0 -70
- data/lib/git/base/factory.rb +0 -99
- data/lib/git/failed_error.rb +0 -53
- data/lib/git/git_execute_error.rb +0 -7
- data/lib/git/signaled_error.rb +0 -50
- /data/{ISSUE_TEMPLATE.md → .github/issue_template.md} +0 -0
data/lib/git/status.rb
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Git
|
|
4
|
+
# The status class gets the status of a git repository
|
|
5
|
+
#
|
|
6
|
+
# This identifies which files have been modified, added, or deleted from the
|
|
7
|
+
# worktree. Untracked files are also identified.
|
|
8
|
+
#
|
|
9
|
+
# The Status object is an Enumerable that contains StatusFile objects.
|
|
2
10
|
#
|
|
3
|
-
#
|
|
11
|
+
# @api public
|
|
4
12
|
#
|
|
5
13
|
class Status
|
|
6
14
|
include Enumerable
|
|
@@ -16,7 +24,7 @@ module Git
|
|
|
16
24
|
#
|
|
17
25
|
# @return [Enumerable]
|
|
18
26
|
def changed
|
|
19
|
-
@files.select { |_k, f| f.type == 'M' }
|
|
27
|
+
@_changed ||= @files.select { |_k, f| f.type == 'M' }
|
|
20
28
|
end
|
|
21
29
|
|
|
22
30
|
#
|
|
@@ -28,20 +36,19 @@ module Git
|
|
|
28
36
|
# changed?('lib/git.rb')
|
|
29
37
|
# @return [Boolean]
|
|
30
38
|
def changed?(file)
|
|
31
|
-
|
|
39
|
+
case_aware_include?(:changed, :lc_changed, file)
|
|
32
40
|
end
|
|
33
41
|
|
|
34
|
-
#
|
|
35
42
|
# Returns an Enumerable containing files that have been added.
|
|
36
43
|
# File path starts at git base directory
|
|
37
44
|
#
|
|
38
45
|
# @return [Enumerable]
|
|
39
46
|
def added
|
|
40
|
-
@files.select { |_k, f| f.type == 'A' }
|
|
47
|
+
@_added ||= @files.select { |_k, f| f.type == 'A' }
|
|
41
48
|
end
|
|
42
49
|
|
|
43
|
-
#
|
|
44
50
|
# Determines whether the given file has been added to the repository
|
|
51
|
+
#
|
|
45
52
|
# File path starts at git base directory
|
|
46
53
|
#
|
|
47
54
|
# @param file [String] The name of the file.
|
|
@@ -49,7 +56,7 @@ module Git
|
|
|
49
56
|
# added?('lib/git.rb')
|
|
50
57
|
# @return [Boolean]
|
|
51
58
|
def added?(file)
|
|
52
|
-
|
|
59
|
+
case_aware_include?(:added, :lc_added, file)
|
|
53
60
|
end
|
|
54
61
|
|
|
55
62
|
#
|
|
@@ -58,7 +65,7 @@ module Git
|
|
|
58
65
|
#
|
|
59
66
|
# @return [Enumerable]
|
|
60
67
|
def deleted
|
|
61
|
-
@files.select { |_k, f| f.type == 'D' }
|
|
68
|
+
@_deleted ||= @files.select { |_k, f| f.type == 'D' }
|
|
62
69
|
end
|
|
63
70
|
|
|
64
71
|
#
|
|
@@ -70,7 +77,7 @@ module Git
|
|
|
70
77
|
# deleted?('lib/git.rb')
|
|
71
78
|
# @return [Boolean]
|
|
72
79
|
def deleted?(file)
|
|
73
|
-
|
|
80
|
+
case_aware_include?(:deleted, :lc_deleted, file)
|
|
74
81
|
end
|
|
75
82
|
|
|
76
83
|
#
|
|
@@ -79,7 +86,7 @@ module Git
|
|
|
79
86
|
#
|
|
80
87
|
# @return [Enumerable]
|
|
81
88
|
def untracked
|
|
82
|
-
@files.select { |_k, f| f.untracked }
|
|
89
|
+
@_untracked ||= @files.select { |_k, f| f.untracked }
|
|
83
90
|
end
|
|
84
91
|
|
|
85
92
|
#
|
|
@@ -91,11 +98,11 @@ module Git
|
|
|
91
98
|
# untracked?('lib/git.rb')
|
|
92
99
|
# @return [Boolean]
|
|
93
100
|
def untracked?(file)
|
|
94
|
-
|
|
101
|
+
case_aware_include?(:untracked, :lc_untracked, file)
|
|
95
102
|
end
|
|
96
103
|
|
|
97
104
|
def pretty
|
|
98
|
-
out = ''
|
|
105
|
+
out = +''
|
|
99
106
|
each do |file|
|
|
100
107
|
out << pretty_file(file)
|
|
101
108
|
end
|
|
@@ -126,9 +133,63 @@ module Git
|
|
|
126
133
|
|
|
127
134
|
# subclass that does heavy lifting
|
|
128
135
|
class StatusFile
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
136
|
+
# @!attribute [r] path
|
|
137
|
+
# The path of the file relative to the project root directory
|
|
138
|
+
# @return [String]
|
|
139
|
+
attr_accessor :path
|
|
140
|
+
|
|
141
|
+
# @!attribute [r] type
|
|
142
|
+
# The type of change
|
|
143
|
+
#
|
|
144
|
+
# * 'M': modified
|
|
145
|
+
# * 'A': added
|
|
146
|
+
# * 'D': deleted
|
|
147
|
+
# * nil: ???
|
|
148
|
+
#
|
|
149
|
+
# @return [String]
|
|
150
|
+
attr_accessor :type
|
|
151
|
+
|
|
152
|
+
# @!attribute [r] mode_index
|
|
153
|
+
# The mode of the file in the index
|
|
154
|
+
# @return [String]
|
|
155
|
+
# @example 100644
|
|
156
|
+
#
|
|
157
|
+
attr_accessor :mode_index
|
|
158
|
+
|
|
159
|
+
# @!attribute [r] mode_repo
|
|
160
|
+
# The mode of the file in the repo
|
|
161
|
+
# @return [String]
|
|
162
|
+
# @example 100644
|
|
163
|
+
#
|
|
164
|
+
attr_accessor :mode_repo
|
|
165
|
+
|
|
166
|
+
# @!attribute [r] sha_index
|
|
167
|
+
# The sha of the file in the index
|
|
168
|
+
# @return [String]
|
|
169
|
+
# @example 123456
|
|
170
|
+
#
|
|
171
|
+
attr_accessor :sha_index
|
|
172
|
+
|
|
173
|
+
# @!attribute [r] sha_repo
|
|
174
|
+
# The sha of the file in the repo
|
|
175
|
+
# @return [String]
|
|
176
|
+
# @example 123456
|
|
177
|
+
attr_accessor :sha_repo
|
|
178
|
+
|
|
179
|
+
# @!attribute [r] untracked
|
|
180
|
+
# Whether the file is untracked
|
|
181
|
+
# @return [Boolean]
|
|
182
|
+
attr_accessor :untracked
|
|
183
|
+
|
|
184
|
+
# @!attribute [r] stage
|
|
185
|
+
# The stage of the file
|
|
186
|
+
#
|
|
187
|
+
# * '0': the unmerged state
|
|
188
|
+
# * '1': the common ancestor (or original) version
|
|
189
|
+
# * '2': "our version" from the current branch head
|
|
190
|
+
# * '3': "their version" from the other branch head
|
|
191
|
+
# @return [String]
|
|
192
|
+
attr_accessor :stage
|
|
132
193
|
|
|
133
194
|
def initialize(base, hash)
|
|
134
195
|
@base = base
|
|
@@ -158,10 +219,19 @@ module Git
|
|
|
158
219
|
private
|
|
159
220
|
|
|
160
221
|
def construct_status
|
|
222
|
+
# Lists all files in the index and the worktree
|
|
223
|
+
# git ls-files --stage
|
|
224
|
+
# { file => { path: file, mode_index: '100644', sha_index: 'dd4fc23', stage: '0' } }
|
|
161
225
|
@files = @base.lib.ls_files
|
|
162
226
|
|
|
227
|
+
# Lists files in the worktree that are not in the index
|
|
228
|
+
# Add untracked files to @files
|
|
163
229
|
fetch_untracked
|
|
230
|
+
|
|
231
|
+
# Lists files that are different between the index vs. the worktree
|
|
164
232
|
fetch_modified
|
|
233
|
+
|
|
234
|
+
# Lists files that are different between the repo HEAD vs. the worktree
|
|
165
235
|
fetch_added
|
|
166
236
|
|
|
167
237
|
@files.each do |k, file_hash|
|
|
@@ -170,28 +240,68 @@ module Git
|
|
|
170
240
|
end
|
|
171
241
|
|
|
172
242
|
def fetch_untracked
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
Dir.glob('**/*', File::FNM_DOTMATCH, base: root_dir) do |file|
|
|
177
|
-
next if @files[file] || File.directory?(File.join(root_dir, file)) ||
|
|
178
|
-
ignore.include?(file) || file =~ %r{^.git\/.+}
|
|
179
|
-
|
|
243
|
+
# git ls-files --others --exclude-standard, chdir: @git_work_dir)
|
|
244
|
+
# { file => { path: file, untracked: true } }
|
|
245
|
+
@base.lib.untracked_files.each do |file|
|
|
180
246
|
@files[file] = { path: file, untracked: true }
|
|
181
247
|
end
|
|
182
248
|
end
|
|
183
249
|
|
|
184
250
|
def fetch_modified
|
|
185
|
-
#
|
|
251
|
+
# Files changed between the index vs. the worktree
|
|
252
|
+
# git diff-files
|
|
253
|
+
# { file => { path: file, type: 'M', mode_index: '100644', mode_repo: '100644', sha_index: '0000000', :sha_repo: '52c6c4e' } }
|
|
186
254
|
@base.lib.diff_files.each do |path, data|
|
|
187
255
|
@files[path] ? @files[path].merge!(data) : @files[path] = data
|
|
188
256
|
end
|
|
189
257
|
end
|
|
190
258
|
|
|
191
259
|
def fetch_added
|
|
192
|
-
|
|
260
|
+
unless @base.lib.empty?
|
|
261
|
+
# Files changed between the repo HEAD vs. the worktree
|
|
262
|
+
# git diff-index HEAD
|
|
263
|
+
# { file => { path: file, type: 'M', mode_index: '100644', mode_repo: '100644', sha_index: '0000000', :sha_repo: '52c6c4e' } }
|
|
193
264
|
@base.lib.diff_index('HEAD').each do |path, data|
|
|
194
|
-
|
|
265
|
+
@files[path] ? @files[path].merge!(data) : @files[path] = data
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# It's worth noting that (like git itself) this gem will not behave well if
|
|
271
|
+
# ignoreCase is set inconsistently with the file-system itself. For details:
|
|
272
|
+
# https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreignoreCase
|
|
273
|
+
def ignore_case?
|
|
274
|
+
return @_ignore_case if defined?(@_ignore_case)
|
|
275
|
+
@_ignore_case = @base.config('core.ignoreCase') == 'true'
|
|
276
|
+
rescue Git::FailedError
|
|
277
|
+
@_ignore_case = false
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
def downcase_keys(hash)
|
|
281
|
+
hash.map { |k, v| [k.downcase, v] }.to_h
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
def lc_changed
|
|
285
|
+
@_lc_changed ||= changed.transform_keys(&:downcase)
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
def lc_added
|
|
289
|
+
@_lc_added ||= added.transform_keys(&:downcase)
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
def lc_deleted
|
|
293
|
+
@_lc_deleted ||= deleted.transform_keys(&:downcase)
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
def lc_untracked
|
|
297
|
+
@_lc_untracked ||= untracked.transform_keys(&:downcase)
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
def case_aware_include?(cased_hash, downcased_hash, file)
|
|
301
|
+
if ignore_case?
|
|
302
|
+
send(downcased_hash).include?(file.downcase)
|
|
303
|
+
else
|
|
304
|
+
send(cased_hash).include?(file)
|
|
195
305
|
end
|
|
196
306
|
end
|
|
197
307
|
end
|
data/lib/git/version.rb
CHANGED
data/lib/git/worktree.rb
CHANGED
data/lib/git/worktrees.rb
CHANGED
data/lib/git.rb
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'active_support'
|
|
4
|
+
require 'active_support/deprecation'
|
|
5
|
+
|
|
6
|
+
module Git
|
|
7
|
+
Deprecation = ActiveSupport::Deprecation.new('3.0', 'Git')
|
|
8
|
+
end
|
|
5
9
|
|
|
6
10
|
require 'git/author'
|
|
7
11
|
require 'git/base'
|
|
8
12
|
require 'git/branch'
|
|
9
13
|
require 'git/branches'
|
|
10
14
|
require 'git/command_line_result'
|
|
15
|
+
require 'git/command_line'
|
|
11
16
|
require 'git/config'
|
|
12
17
|
require 'git/diff'
|
|
13
18
|
require 'git/encoding_utils'
|
|
19
|
+
require 'git/errors'
|
|
14
20
|
require 'git/escaped_path'
|
|
15
|
-
require 'git/failed_error'
|
|
16
|
-
require 'git/git_execute_error'
|
|
17
21
|
require 'git/index'
|
|
18
22
|
require 'git/lib'
|
|
19
23
|
require 'git/log'
|
|
@@ -21,7 +25,6 @@ require 'git/object'
|
|
|
21
25
|
require 'git/path'
|
|
22
26
|
require 'git/remote'
|
|
23
27
|
require 'git/repository'
|
|
24
|
-
require 'git/signaled_error'
|
|
25
28
|
require 'git/status'
|
|
26
29
|
require 'git/stash'
|
|
27
30
|
require 'git/stashes'
|
|
@@ -380,4 +383,15 @@ module Git
|
|
|
380
383
|
def self.open(working_dir, options = {})
|
|
381
384
|
Base.open(working_dir, options)
|
|
382
385
|
end
|
|
386
|
+
|
|
387
|
+
# Return the version of the git binary
|
|
388
|
+
#
|
|
389
|
+
# @example
|
|
390
|
+
# Git.binary_version # => [2, 46, 0]
|
|
391
|
+
#
|
|
392
|
+
# @return [Array<Integer>] the version of the git binary
|
|
393
|
+
#
|
|
394
|
+
def self.binary_version(binary_path = Git::Base.config.binary_path)
|
|
395
|
+
Base.binary_version(binary_path)
|
|
396
|
+
end
|
|
383
397
|
end
|
data/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bootstrap-sha": "31374263eafea4e23352494ef4f6bea3ce62c1b5",
|
|
3
|
+
"packages": {
|
|
4
|
+
".": {
|
|
5
|
+
"release-type": "ruby",
|
|
6
|
+
"package-name": "git",
|
|
7
|
+
"changelog-path": "CHANGELOG.md",
|
|
8
|
+
"version-file": "lib/git/version.rb",
|
|
9
|
+
"bump-minor-pre-major": true,
|
|
10
|
+
"bump-patch-for-minor-pre-major": true,
|
|
11
|
+
"draft": false,
|
|
12
|
+
"prerelease": false,
|
|
13
|
+
"include-component-in-tag": false,
|
|
14
|
+
"pull-request-title-pattern": "chore: release v${version}",
|
|
15
|
+
"changelog-sections": [
|
|
16
|
+
{ "type": "feat", "section": "Features", "hidden": false },
|
|
17
|
+
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
|
|
18
|
+
{ "type": "build", "section": "Other Changes", "hidden": false },
|
|
19
|
+
{ "type": "chore", "section": "Other Changes", "hidden": false },
|
|
20
|
+
{ "type": "ci", "section": "Other Changes", "hidden": false },
|
|
21
|
+
{ "type": "docs", "section": "Other Changes", "hidden": false },
|
|
22
|
+
{ "type": "perf", "section": "Other Changes", "hidden": false },
|
|
23
|
+
{ "type": "refactor", "section": "Other Changes", "hidden": false },
|
|
24
|
+
{ "type": "revert", "section": "Other Changes", "hidden": false },
|
|
25
|
+
{ "type": "style", "section": "Other Changes", "hidden": false },
|
|
26
|
+
{ "type": "test", "section": "Other Changes", "hidden": false }
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"plugins": [
|
|
31
|
+
{
|
|
32
|
+
"type": "sentence-case"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
|
|
36
|
+
}
|
metadata
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 3.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Chacon and others
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: activesupport
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '5.0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '5.0'
|
|
13
26
|
- !ruby/object:Gem::Dependency
|
|
14
27
|
name: addressable
|
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -25,117 +38,117 @@ dependencies:
|
|
|
25
38
|
- !ruby/object:Gem::Version
|
|
26
39
|
version: '2.8'
|
|
27
40
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
41
|
+
name: process_executer
|
|
29
42
|
requirement: !ruby/object:Gem::Requirement
|
|
30
43
|
requirements:
|
|
31
44
|
- - "~>"
|
|
32
45
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.
|
|
46
|
+
version: '1.3'
|
|
34
47
|
type: :runtime
|
|
35
48
|
prerelease: false
|
|
36
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
50
|
requirements:
|
|
38
51
|
- - "~>"
|
|
39
52
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.
|
|
53
|
+
version: '1.3'
|
|
41
54
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
55
|
+
name: rchardet
|
|
43
56
|
requirement: !ruby/object:Gem::Requirement
|
|
44
57
|
requirements:
|
|
45
58
|
- - "~>"
|
|
46
59
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
48
|
-
type: :
|
|
60
|
+
version: '1.9'
|
|
61
|
+
type: :runtime
|
|
49
62
|
prerelease: false
|
|
50
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
64
|
requirements:
|
|
52
65
|
- - "~>"
|
|
53
66
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
67
|
+
version: '1.9'
|
|
55
68
|
- !ruby/object:Gem::Dependency
|
|
56
69
|
name: create_github_release
|
|
57
70
|
requirement: !ruby/object:Gem::Requirement
|
|
58
71
|
requirements:
|
|
59
72
|
- - "~>"
|
|
60
73
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
74
|
+
version: '2.1'
|
|
62
75
|
type: :development
|
|
63
76
|
prerelease: false
|
|
64
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
78
|
requirements:
|
|
66
79
|
- - "~>"
|
|
67
80
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
81
|
+
version: '2.1'
|
|
69
82
|
- !ruby/object:Gem::Dependency
|
|
70
83
|
name: minitar
|
|
71
84
|
requirement: !ruby/object:Gem::Requirement
|
|
72
85
|
requirements:
|
|
73
86
|
- - "~>"
|
|
74
87
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0
|
|
88
|
+
version: '1.0'
|
|
76
89
|
type: :development
|
|
77
90
|
prerelease: false
|
|
78
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
92
|
requirements:
|
|
80
93
|
- - "~>"
|
|
81
94
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '0
|
|
95
|
+
version: '1.0'
|
|
83
96
|
- !ruby/object:Gem::Dependency
|
|
84
97
|
name: mocha
|
|
85
98
|
requirement: !ruby/object:Gem::Requirement
|
|
86
99
|
requirements:
|
|
87
100
|
- - "~>"
|
|
88
101
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '2.
|
|
102
|
+
version: '2.7'
|
|
90
103
|
type: :development
|
|
91
104
|
prerelease: false
|
|
92
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
106
|
requirements:
|
|
94
107
|
- - "~>"
|
|
95
108
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '2.
|
|
109
|
+
version: '2.7'
|
|
97
110
|
- !ruby/object:Gem::Dependency
|
|
98
111
|
name: rake
|
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
|
100
113
|
requirements:
|
|
101
114
|
- - "~>"
|
|
102
115
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '13.
|
|
116
|
+
version: '13.2'
|
|
104
117
|
type: :development
|
|
105
118
|
prerelease: false
|
|
106
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
120
|
requirements:
|
|
108
121
|
- - "~>"
|
|
109
122
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '13.
|
|
123
|
+
version: '13.2'
|
|
111
124
|
- !ruby/object:Gem::Dependency
|
|
112
125
|
name: test-unit
|
|
113
126
|
requirement: !ruby/object:Gem::Requirement
|
|
114
127
|
requirements:
|
|
115
128
|
- - "~>"
|
|
116
129
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '3.
|
|
130
|
+
version: '3.6'
|
|
118
131
|
type: :development
|
|
119
132
|
prerelease: false
|
|
120
133
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
134
|
requirements:
|
|
122
135
|
- - "~>"
|
|
123
136
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '3.
|
|
137
|
+
version: '3.6'
|
|
125
138
|
- !ruby/object:Gem::Dependency
|
|
126
139
|
name: redcarpet
|
|
127
140
|
requirement: !ruby/object:Gem::Requirement
|
|
128
141
|
requirements:
|
|
129
142
|
- - "~>"
|
|
130
143
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: '3.
|
|
144
|
+
version: '3.6'
|
|
132
145
|
type: :development
|
|
133
146
|
prerelease: false
|
|
134
147
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
148
|
requirements:
|
|
136
149
|
- - "~>"
|
|
137
150
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: '3.
|
|
151
|
+
version: '3.6'
|
|
139
152
|
- !ruby/object:Gem::Dependency
|
|
140
153
|
name: yard
|
|
141
154
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -181,35 +194,37 @@ executables: []
|
|
|
181
194
|
extensions: []
|
|
182
195
|
extra_rdoc_files: []
|
|
183
196
|
files:
|
|
184
|
-
- ".
|
|
197
|
+
- ".commitlintrc.yml"
|
|
198
|
+
- ".github/issue_template.md"
|
|
199
|
+
- ".github/pull_request_template.md"
|
|
185
200
|
- ".github/workflows/continuous_integration.yml"
|
|
201
|
+
- ".github/workflows/enforce_conventional_commits.yml"
|
|
202
|
+
- ".github/workflows/experimental_continuous_integration.yml"
|
|
203
|
+
- ".github/workflows/release.yml"
|
|
186
204
|
- ".gitignore"
|
|
205
|
+
- ".husky/commit-msg"
|
|
206
|
+
- ".release-please-manifest.json"
|
|
187
207
|
- ".yardopts"
|
|
188
208
|
- CHANGELOG.md
|
|
189
209
|
- CONTRIBUTING.md
|
|
190
|
-
- Dockerfile.changelog-rs
|
|
191
210
|
- Gemfile
|
|
192
|
-
- ISSUE_TEMPLATE.md
|
|
193
211
|
- LICENSE
|
|
194
212
|
- MAINTAINERS.md
|
|
195
|
-
- PULL_REQUEST_TEMPLATE.md
|
|
196
213
|
- README.md
|
|
197
|
-
- RELEASING.md
|
|
198
214
|
- Rakefile
|
|
199
215
|
- git.gemspec
|
|
200
216
|
- lib/git.rb
|
|
201
217
|
- lib/git/author.rb
|
|
202
218
|
- lib/git/base.rb
|
|
203
|
-
- lib/git/base/factory.rb
|
|
204
219
|
- lib/git/branch.rb
|
|
205
220
|
- lib/git/branches.rb
|
|
221
|
+
- lib/git/command_line.rb
|
|
206
222
|
- lib/git/command_line_result.rb
|
|
207
223
|
- lib/git/config.rb
|
|
208
224
|
- lib/git/diff.rb
|
|
209
225
|
- lib/git/encoding_utils.rb
|
|
226
|
+
- lib/git/errors.rb
|
|
210
227
|
- lib/git/escaped_path.rb
|
|
211
|
-
- lib/git/failed_error.rb
|
|
212
|
-
- lib/git/git_execute_error.rb
|
|
213
228
|
- lib/git/index.rb
|
|
214
229
|
- lib/git/lib.rb
|
|
215
230
|
- lib/git/log.rb
|
|
@@ -217,7 +232,6 @@ files:
|
|
|
217
232
|
- lib/git/path.rb
|
|
218
233
|
- lib/git/remote.rb
|
|
219
234
|
- lib/git/repository.rb
|
|
220
|
-
- lib/git/signaled_error.rb
|
|
221
235
|
- lib/git/stash.rb
|
|
222
236
|
- lib/git/stashes.rb
|
|
223
237
|
- lib/git/status.rb
|
|
@@ -226,15 +240,16 @@ files:
|
|
|
226
240
|
- lib/git/working_directory.rb
|
|
227
241
|
- lib/git/worktree.rb
|
|
228
242
|
- lib/git/worktrees.rb
|
|
243
|
+
- package.json
|
|
244
|
+
- release-please-config.json
|
|
229
245
|
homepage: http://github.com/ruby-git/ruby-git
|
|
230
246
|
licenses:
|
|
231
247
|
- MIT
|
|
232
248
|
metadata:
|
|
233
249
|
homepage_uri: http://github.com/ruby-git/ruby-git
|
|
234
250
|
source_code_uri: http://github.com/ruby-git/ruby-git
|
|
235
|
-
changelog_uri: https://rubydoc.info/gems/git/1.
|
|
236
|
-
documentation_uri: https://rubydoc.info/gems/git/1.
|
|
237
|
-
post_install_message:
|
|
251
|
+
changelog_uri: https://rubydoc.info/gems/git/3.1.1/file/CHANGELOG.md
|
|
252
|
+
documentation_uri: https://rubydoc.info/gems/git/3.1.1
|
|
238
253
|
rdoc_options: []
|
|
239
254
|
require_paths:
|
|
240
255
|
- lib
|
|
@@ -242,16 +257,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
242
257
|
requirements:
|
|
243
258
|
- - ">="
|
|
244
259
|
- !ruby/object:Gem::Version
|
|
245
|
-
version:
|
|
260
|
+
version: 3.0.0
|
|
246
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
262
|
requirements:
|
|
248
263
|
- - ">="
|
|
249
264
|
- !ruby/object:Gem::Version
|
|
250
265
|
version: '0'
|
|
251
266
|
requirements:
|
|
252
|
-
- git
|
|
253
|
-
rubygems_version: 3.
|
|
254
|
-
signing_key:
|
|
267
|
+
- git 2.28.0 or greater
|
|
268
|
+
rubygems_version: 3.6.7
|
|
255
269
|
specification_version: 4
|
|
256
270
|
summary: An API to create, read, and manipulate Git repositories
|
|
257
271
|
test_files: []
|
data/.github/stale.yml
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Probot: Stale
|
|
2
|
-
# https://github.com/probot/stale
|
|
3
|
-
|
|
4
|
-
# Number of days of inactivity before an issue becomes stale
|
|
5
|
-
daysUntilStale: 60
|
|
6
|
-
|
|
7
|
-
# Number of days of inactivity before a stale issue is closed
|
|
8
|
-
# Set to false to disable. If disabled, issues still need to be closed
|
|
9
|
-
# manually, but will remain marked as stale.
|
|
10
|
-
daysUntilClose: false
|
|
11
|
-
|
|
12
|
-
# Issues with these labels will never be considered stale
|
|
13
|
-
exemptLabels:
|
|
14
|
-
- pinned
|
|
15
|
-
- security
|
|
16
|
-
|
|
17
|
-
# Label to use when marking an issue as stale
|
|
18
|
-
staleLabel: stale
|
|
19
|
-
|
|
20
|
-
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
21
|
-
markComment: >
|
|
22
|
-
A friendly reminder that this issue had no activity for 60 days.
|
|
23
|
-
|
|
24
|
-
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
25
|
-
closeComment: false
|