git 1.19.1 → 2.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/.github/pull_request_template.md +8 -0
- data/.github/workflows/continuous_integration.yml +14 -20
- data/.github/workflows/experimental_continuous_integration.yml +43 -0
- data/CHANGELOG.md +88 -0
- data/CONTRIBUTING.md +22 -67
- data/README.md +166 -52
- data/RELEASING.md +49 -34
- data/git.gemspec +8 -8
- data/lib/git/base.rb +173 -47
- data/lib/git/command_line.rb +377 -0
- data/lib/git/config.rb +5 -1
- data/lib/git/errors.rb +206 -0
- data/lib/git/escaped_path.rb +1 -1
- data/lib/git/lib.rb +244 -177
- data/lib/git/log.rb +65 -4
- data/lib/git/object.rb +69 -67
- data/lib/git/status.rb +132 -24
- data/lib/git/version.rb +1 -1
- data/lib/git.rb +8 -7
- metadata +41 -30
- data/.github/stale.yml +0 -25
- data/Dockerfile.changelog-rs +0 -12
- data/PULL_REQUEST_TEMPLATE.md +0 -9
- 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.rb
CHANGED
@@ -1,19 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
require 'active_support'
|
2
|
+
require 'active_support/deprecation'
|
3
|
+
|
4
|
+
module Git
|
5
|
+
Deprecation = ActiveSupport::Deprecation.new('3.0', 'Git')
|
6
|
+
end
|
5
7
|
|
6
8
|
require 'git/author'
|
7
9
|
require 'git/base'
|
8
10
|
require 'git/branch'
|
9
11
|
require 'git/branches'
|
10
12
|
require 'git/command_line_result'
|
13
|
+
require 'git/command_line'
|
11
14
|
require 'git/config'
|
12
15
|
require 'git/diff'
|
13
16
|
require 'git/encoding_utils'
|
17
|
+
require 'git/errors'
|
14
18
|
require 'git/escaped_path'
|
15
|
-
require 'git/failed_error'
|
16
|
-
require 'git/git_execute_error'
|
17
19
|
require 'git/index'
|
18
20
|
require 'git/lib'
|
19
21
|
require 'git/log'
|
@@ -21,7 +23,6 @@ require 'git/object'
|
|
21
23
|
require 'git/path'
|
22
24
|
require 'git/remote'
|
23
25
|
require 'git/repository'
|
24
|
-
require 'git/signaled_error'
|
25
26
|
require 'git/status'
|
26
27
|
require 'git/stash'
|
27
28
|
require 'git/stashes'
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon and others
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01
|
11
|
+
date: 2024-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: addressable
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -25,47 +39,47 @@ dependencies:
|
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '2.8'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
42
|
+
name: process_executer
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
47
|
+
version: '1.1'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
54
|
+
version: '1.1'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: rchardet
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
61
|
+
version: '1.8'
|
62
|
+
type: :runtime
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '1.8'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: create_github_release
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
75
|
+
version: '1.4'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
82
|
+
version: '1.4'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: minitar
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,42 +114,42 @@ dependencies:
|
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: '13.
|
117
|
+
version: '13.1'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: '13.
|
124
|
+
version: '13.1'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: test-unit
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '3.
|
131
|
+
version: '3.6'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '3.
|
138
|
+
version: '3.6'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: redcarpet
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
145
|
+
version: '3.6'
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: '3.
|
152
|
+
version: '3.6'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: yard
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,18 +195,17 @@ executables: []
|
|
181
195
|
extensions: []
|
182
196
|
extra_rdoc_files: []
|
183
197
|
files:
|
184
|
-
- ".github/
|
198
|
+
- ".github/issue_template.md"
|
199
|
+
- ".github/pull_request_template.md"
|
185
200
|
- ".github/workflows/continuous_integration.yml"
|
201
|
+
- ".github/workflows/experimental_continuous_integration.yml"
|
186
202
|
- ".gitignore"
|
187
203
|
- ".yardopts"
|
188
204
|
- CHANGELOG.md
|
189
205
|
- CONTRIBUTING.md
|
190
|
-
- Dockerfile.changelog-rs
|
191
206
|
- Gemfile
|
192
|
-
- ISSUE_TEMPLATE.md
|
193
207
|
- LICENSE
|
194
208
|
- MAINTAINERS.md
|
195
|
-
- PULL_REQUEST_TEMPLATE.md
|
196
209
|
- README.md
|
197
210
|
- RELEASING.md
|
198
211
|
- Rakefile
|
@@ -200,16 +213,15 @@ files:
|
|
200
213
|
- lib/git.rb
|
201
214
|
- lib/git/author.rb
|
202
215
|
- lib/git/base.rb
|
203
|
-
- lib/git/base/factory.rb
|
204
216
|
- lib/git/branch.rb
|
205
217
|
- lib/git/branches.rb
|
218
|
+
- lib/git/command_line.rb
|
206
219
|
- lib/git/command_line_result.rb
|
207
220
|
- lib/git/config.rb
|
208
221
|
- lib/git/diff.rb
|
209
222
|
- lib/git/encoding_utils.rb
|
223
|
+
- lib/git/errors.rb
|
210
224
|
- lib/git/escaped_path.rb
|
211
|
-
- lib/git/failed_error.rb
|
212
|
-
- lib/git/git_execute_error.rb
|
213
225
|
- lib/git/index.rb
|
214
226
|
- lib/git/lib.rb
|
215
227
|
- lib/git/log.rb
|
@@ -217,7 +229,6 @@ files:
|
|
217
229
|
- lib/git/path.rb
|
218
230
|
- lib/git/remote.rb
|
219
231
|
- lib/git/repository.rb
|
220
|
-
- lib/git/signaled_error.rb
|
221
232
|
- lib/git/stash.rb
|
222
233
|
- lib/git/stashes.rb
|
223
234
|
- lib/git/status.rb
|
@@ -232,8 +243,8 @@ licenses:
|
|
232
243
|
metadata:
|
233
244
|
homepage_uri: http://github.com/ruby-git/ruby-git
|
234
245
|
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.
|
246
|
+
changelog_uri: https://rubydoc.info/gems/git/2.1.1/file/CHANGELOG.md
|
247
|
+
documentation_uri: https://rubydoc.info/gems/git/2.1.1
|
237
248
|
post_install_message:
|
238
249
|
rdoc_options: []
|
239
250
|
require_paths:
|
@@ -242,15 +253,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
242
253
|
requirements:
|
243
254
|
- - ">="
|
244
255
|
- !ruby/object:Gem::Version
|
245
|
-
version:
|
256
|
+
version: 3.0.0
|
246
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
247
258
|
requirements:
|
248
259
|
- - ">="
|
249
260
|
- !ruby/object:Gem::Version
|
250
261
|
version: '0'
|
251
262
|
requirements:
|
252
|
-
- git
|
253
|
-
rubygems_version: 3.5.
|
263
|
+
- git 2.28.0 or greater
|
264
|
+
rubygems_version: 3.5.9
|
254
265
|
signing_key:
|
255
266
|
specification_version: 4
|
256
267
|
summary: An API to create, read, and manipulate Git repositories
|
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
|
data/Dockerfile.changelog-rs
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
FROM rust
|
2
|
-
|
3
|
-
# Build the docker image (from this project's root directory):
|
4
|
-
# docker build --file Dockerfile.changelog-rs --tag changelog-rs .
|
5
|
-
#
|
6
|
-
# Use this image to output a changelog (from this project's root directory):
|
7
|
-
# docker run --rm --volume "$PWD:/worktree" changelog-rs v1.9.1 v1.10.0
|
8
|
-
|
9
|
-
RUN cargo install changelog-rs
|
10
|
-
WORKDIR /worktree
|
11
|
-
|
12
|
-
ENTRYPOINT ["/usr/local/cargo/bin/changelog-rs", "/worktree"]
|
data/PULL_REQUEST_TEMPLATE.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
### Your checklist for this pull request
|
2
|
-
🚨Please review the [guidelines for contributing](https://github.com/ruby-git/ruby-git/blob/master/CONTRIBUTING.md) to this repository.
|
3
|
-
|
4
|
-
- [ ] Ensure all commits include DCO sign-off.
|
5
|
-
- [ ] Ensure that your contributions pass unit testing.
|
6
|
-
- [ ] Ensure that your contributions contain documentation if applicable.
|
7
|
-
|
8
|
-
### Description
|
9
|
-
Please describe your pull request.
|
data/lib/git/base/factory.rb
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
module Git
|
2
|
-
|
3
|
-
class Base
|
4
|
-
|
5
|
-
module Factory
|
6
|
-
# @return [Git::Branch] an object for branch_name
|
7
|
-
def branch(branch_name = self.current_branch)
|
8
|
-
Git::Branch.new(self, branch_name)
|
9
|
-
end
|
10
|
-
|
11
|
-
# @return [Git::Branches] a collection of all the branches in the repository.
|
12
|
-
# Each branch is represented as a {Git::Branch}.
|
13
|
-
def branches
|
14
|
-
Git::Branches.new(self)
|
15
|
-
end
|
16
|
-
|
17
|
-
# returns a Git::Worktree object for dir, commitish
|
18
|
-
def worktree(dir, commitish = nil)
|
19
|
-
Git::Worktree.new(self, dir, commitish)
|
20
|
-
end
|
21
|
-
|
22
|
-
# returns a Git::worktrees object of all the Git::Worktrees
|
23
|
-
# objects for this repo
|
24
|
-
def worktrees
|
25
|
-
Git::Worktrees.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
# @return [Git::Object::Commit] a commit object
|
29
|
-
def commit_tree(tree = nil, opts = {})
|
30
|
-
Git::Object::Commit.new(self, self.lib.commit_tree(tree, opts))
|
31
|
-
end
|
32
|
-
|
33
|
-
# @return [Git::Diff] a Git::Diff object
|
34
|
-
def diff(objectish = 'HEAD', obj2 = nil)
|
35
|
-
Git::Diff.new(self, objectish, obj2)
|
36
|
-
end
|
37
|
-
|
38
|
-
# @return [Git::Object] a Git object
|
39
|
-
def gblob(objectish)
|
40
|
-
Git::Object.new(self, objectish, 'blob')
|
41
|
-
end
|
42
|
-
|
43
|
-
# @return [Git::Object] a Git object
|
44
|
-
def gcommit(objectish)
|
45
|
-
Git::Object.new(self, objectish, 'commit')
|
46
|
-
end
|
47
|
-
|
48
|
-
# @return [Git::Object] a Git object
|
49
|
-
def gtree(objectish)
|
50
|
-
Git::Object.new(self, objectish, 'tree')
|
51
|
-
end
|
52
|
-
|
53
|
-
# @return [Git::Log] a log with the specified number of commits
|
54
|
-
def log(count = 30)
|
55
|
-
Git::Log.new(self, count)
|
56
|
-
end
|
57
|
-
|
58
|
-
# returns a Git::Object of the appropriate type
|
59
|
-
# you can also call @git.gtree('tree'), but that's
|
60
|
-
# just for readability. If you call @git.gtree('HEAD') it will
|
61
|
-
# still return a Git::Object::Commit object.
|
62
|
-
#
|
63
|
-
# object calls a factory method that will run a rev-parse
|
64
|
-
# on the objectish and determine the type of the object and return
|
65
|
-
# an appropriate object for that type
|
66
|
-
#
|
67
|
-
# @return [Git::Object] an instance of the appropriate type of Git::Object
|
68
|
-
def object(objectish)
|
69
|
-
Git::Object.new(self, objectish)
|
70
|
-
end
|
71
|
-
|
72
|
-
# @return [Git::Remote] a remote of the specified name
|
73
|
-
def remote(remote_name = 'origin')
|
74
|
-
Git::Remote.new(self, remote_name)
|
75
|
-
end
|
76
|
-
|
77
|
-
# @return [Git::Status] a status object
|
78
|
-
def status
|
79
|
-
Git::Status.new(self)
|
80
|
-
end
|
81
|
-
|
82
|
-
# @return [Git::Object::Tag] a tag object
|
83
|
-
def tag(tag_name)
|
84
|
-
Git::Object.new(self, tag_name, 'tag', true)
|
85
|
-
end
|
86
|
-
|
87
|
-
# Find as good common ancestors as possible for a merge
|
88
|
-
# example: g.merge_base('master', 'some_branch', 'some_sha', octopus: true)
|
89
|
-
#
|
90
|
-
# @return [Array<Git::Object::Commit>] a collection of common ancestors
|
91
|
-
def merge_base(*args)
|
92
|
-
shas = self.lib.merge_base(*args)
|
93
|
-
shas.map { |sha| gcommit(sha) }
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
end
|
98
|
-
|
99
|
-
end
|
data/lib/git/failed_error.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'git/git_execute_error'
|
4
|
-
|
5
|
-
module Git
|
6
|
-
# This error is raised when a git command fails
|
7
|
-
#
|
8
|
-
# The git command executed, status, stdout, and stderr are available from this
|
9
|
-
# object. The #message includes the git command, the status of the process, and
|
10
|
-
# the stderr of the process.
|
11
|
-
#
|
12
|
-
# @api public
|
13
|
-
#
|
14
|
-
class FailedError < Git::GitExecuteError
|
15
|
-
# Create a FailedError object
|
16
|
-
#
|
17
|
-
# Since this gem redirects stderr to stdout, the stdout of the process is used.
|
18
|
-
#
|
19
|
-
# @example
|
20
|
-
# `exit 1` # set $? appropriately for this example
|
21
|
-
# result = Git::CommandLineResult.new(%w[git status], $?, 'stdout', 'stderr')
|
22
|
-
# error = Git::FailedError.new(result)
|
23
|
-
# error.message #=>
|
24
|
-
# "[\"git\", \"status\"]\nstatus: pid 89784 exit 1\noutput: \"stdout\""
|
25
|
-
#
|
26
|
-
# @param result [Git::CommandLineResult] the result of the git command including
|
27
|
-
# the git command, status, stdout, and stderr
|
28
|
-
#
|
29
|
-
def initialize(result)
|
30
|
-
super("#{result.git_cmd}\nstatus: #{result.status}\noutput: #{result.stdout.inspect}")
|
31
|
-
@result = result
|
32
|
-
end
|
33
|
-
|
34
|
-
# @attribute [r] result
|
35
|
-
#
|
36
|
-
# The result of the git command including the git command and its status and output
|
37
|
-
#
|
38
|
-
# @example
|
39
|
-
# `exit 1` # set $? appropriately for this example
|
40
|
-
# result = Git::CommandLineResult.new(%w[git status], $?, 'stdout', 'stderr')
|
41
|
-
# error = Git::FailedError.new(result)
|
42
|
-
# error.result #=>
|
43
|
-
# #<Git::CommandLineResult:0x00000001046bd488
|
44
|
-
# @git_cmd=["git", "status"],
|
45
|
-
# @status=#<Process::Status: pid 89784 exit 1>,
|
46
|
-
# @stderr="stderr",
|
47
|
-
# @stdout="stdout">
|
48
|
-
#
|
49
|
-
# @return [Git::CommandLineResult]
|
50
|
-
#
|
51
|
-
attr_reader :result
|
52
|
-
end
|
53
|
-
end
|
data/lib/git/signaled_error.rb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'git/git_execute_error'
|
4
|
-
|
5
|
-
module Git
|
6
|
-
# This error is raised when a git command exits because of an uncaught signal
|
7
|
-
#
|
8
|
-
# The git command executed, status, stdout, and stderr are available from this
|
9
|
-
# object. The #message includes the git command, the status of the process, and
|
10
|
-
# the stderr of the process.
|
11
|
-
#
|
12
|
-
# @api public
|
13
|
-
#
|
14
|
-
class SignaledError < Git::GitExecuteError
|
15
|
-
# Create a SignaledError object
|
16
|
-
#
|
17
|
-
# @example
|
18
|
-
# `kill -9 $$` # set $? appropriately for this example
|
19
|
-
# result = Git::CommandLineResult.new(%w[git status], $?, '', "killed")
|
20
|
-
# error = Git::SignaledError.new(result)
|
21
|
-
# error.message #=>
|
22
|
-
# "[\"git\", \"status\"]\nstatus: pid 88811 SIGKILL (signal 9)\nstderr: \"killed\""
|
23
|
-
#
|
24
|
-
# @param result [Git::CommandLineResult] the result of the git command including the git command, status, stdout, and stderr
|
25
|
-
#
|
26
|
-
def initialize(result)
|
27
|
-
super("#{result.git_cmd}\nstatus: #{result.status}\nstderr: #{result.stderr.inspect}")
|
28
|
-
@result = result
|
29
|
-
end
|
30
|
-
|
31
|
-
# @attribute [r] result
|
32
|
-
#
|
33
|
-
# The result of the git command including the git command, status, and output
|
34
|
-
#
|
35
|
-
# @example
|
36
|
-
# `kill -9 $$` # set $? appropriately for this example
|
37
|
-
# result = Git::CommandLineResult.new(%w[git status], $?, '', "killed")
|
38
|
-
# error = Git::SignaledError.new(result)
|
39
|
-
# error.result #=>
|
40
|
-
# #<Git::CommandLineResult:0x000000010470f6e8
|
41
|
-
# @git_cmd=["git", "status"],
|
42
|
-
# @status=#<Process::Status: pid 88811 SIGKILL (signal 9)>,
|
43
|
-
# @stderr="killed",
|
44
|
-
# @stdout="">
|
45
|
-
#
|
46
|
-
# @return [Git::CommandLineResult]
|
47
|
-
#
|
48
|
-
attr_reader :result
|
49
|
-
end
|
50
|
-
end
|
File without changes
|