git 2.3.3 → 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 +1 -1
- data/.github/workflows/continuous_integration.yml +9 -5
- data/.github/workflows/enforce_conventional_commits.yml +28 -0
- data/.github/workflows/experimental_continuous_integration.yml +8 -1
- 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 +65 -0
- data/CONTRIBUTING.md +104 -31
- data/README.md +44 -43
- data/Rakefile +7 -0
- data/git.gemspec +6 -6
- data/lib/git/author.rb +3 -2
- data/lib/git/base.rb +2 -0
- data/lib/git/branch.rb +2 -0
- data/lib/git/branches.rb +15 -14
- data/lib/git/command_line.rb +49 -139
- data/lib/git/config.rb +2 -0
- data/lib/git/diff.rb +2 -0
- data/lib/git/index.rb +2 -1
- data/lib/git/lib.rb +9 -4
- data/lib/git/log.rb +9 -2
- data/lib/git/object.rb +2 -0
- 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 +3 -1
- 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 +2 -0
- data/package.json +10 -0
- data/release-please-config.json +36 -0
- metadata +24 -21
- data/RELEASING.md +0 -85
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
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:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -44,84 +43,84 @@ dependencies:
|
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
46
|
+
version: '1.3'
|
48
47
|
type: :runtime
|
49
48
|
prerelease: false
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
51
|
- - "~>"
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
53
|
+
version: '1.3'
|
55
54
|
- !ruby/object:Gem::Dependency
|
56
55
|
name: rchardet
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
58
|
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
60
|
+
version: '1.9'
|
62
61
|
type: :runtime
|
63
62
|
prerelease: false
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
65
64
|
requirements:
|
66
65
|
- - "~>"
|
67
66
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
67
|
+
version: '1.9'
|
69
68
|
- !ruby/object:Gem::Dependency
|
70
69
|
name: create_github_release
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
72
71
|
requirements:
|
73
72
|
- - "~>"
|
74
73
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1
|
74
|
+
version: '2.1'
|
76
75
|
type: :development
|
77
76
|
prerelease: false
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
79
78
|
requirements:
|
80
79
|
- - "~>"
|
81
80
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1
|
81
|
+
version: '2.1'
|
83
82
|
- !ruby/object:Gem::Dependency
|
84
83
|
name: minitar
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
86
85
|
requirements:
|
87
86
|
- - "~>"
|
88
87
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
88
|
+
version: '1.0'
|
90
89
|
type: :development
|
91
90
|
prerelease: false
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
93
92
|
requirements:
|
94
93
|
- - "~>"
|
95
94
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
95
|
+
version: '1.0'
|
97
96
|
- !ruby/object:Gem::Dependency
|
98
97
|
name: mocha
|
99
98
|
requirement: !ruby/object:Gem::Requirement
|
100
99
|
requirements:
|
101
100
|
- - "~>"
|
102
101
|
- !ruby/object:Gem::Version
|
103
|
-
version: '2.
|
102
|
+
version: '2.7'
|
104
103
|
type: :development
|
105
104
|
prerelease: false
|
106
105
|
version_requirements: !ruby/object:Gem::Requirement
|
107
106
|
requirements:
|
108
107
|
- - "~>"
|
109
108
|
- !ruby/object:Gem::Version
|
110
|
-
version: '2.
|
109
|
+
version: '2.7'
|
111
110
|
- !ruby/object:Gem::Dependency
|
112
111
|
name: rake
|
113
112
|
requirement: !ruby/object:Gem::Requirement
|
114
113
|
requirements:
|
115
114
|
- - "~>"
|
116
115
|
- !ruby/object:Gem::Version
|
117
|
-
version: '13.
|
116
|
+
version: '13.2'
|
118
117
|
type: :development
|
119
118
|
prerelease: false
|
120
119
|
version_requirements: !ruby/object:Gem::Requirement
|
121
120
|
requirements:
|
122
121
|
- - "~>"
|
123
122
|
- !ruby/object:Gem::Version
|
124
|
-
version: '13.
|
123
|
+
version: '13.2'
|
125
124
|
- !ruby/object:Gem::Dependency
|
126
125
|
name: test-unit
|
127
126
|
requirement: !ruby/object:Gem::Requirement
|
@@ -195,11 +194,16 @@ executables: []
|
|
195
194
|
extensions: []
|
196
195
|
extra_rdoc_files: []
|
197
196
|
files:
|
197
|
+
- ".commitlintrc.yml"
|
198
198
|
- ".github/issue_template.md"
|
199
199
|
- ".github/pull_request_template.md"
|
200
200
|
- ".github/workflows/continuous_integration.yml"
|
201
|
+
- ".github/workflows/enforce_conventional_commits.yml"
|
201
202
|
- ".github/workflows/experimental_continuous_integration.yml"
|
203
|
+
- ".github/workflows/release.yml"
|
202
204
|
- ".gitignore"
|
205
|
+
- ".husky/commit-msg"
|
206
|
+
- ".release-please-manifest.json"
|
203
207
|
- ".yardopts"
|
204
208
|
- CHANGELOG.md
|
205
209
|
- CONTRIBUTING.md
|
@@ -207,7 +211,6 @@ files:
|
|
207
211
|
- LICENSE
|
208
212
|
- MAINTAINERS.md
|
209
213
|
- README.md
|
210
|
-
- RELEASING.md
|
211
214
|
- Rakefile
|
212
215
|
- git.gemspec
|
213
216
|
- lib/git.rb
|
@@ -237,15 +240,16 @@ files:
|
|
237
240
|
- lib/git/working_directory.rb
|
238
241
|
- lib/git/worktree.rb
|
239
242
|
- lib/git/worktrees.rb
|
243
|
+
- package.json
|
244
|
+
- release-please-config.json
|
240
245
|
homepage: http://github.com/ruby-git/ruby-git
|
241
246
|
licenses:
|
242
247
|
- MIT
|
243
248
|
metadata:
|
244
249
|
homepage_uri: http://github.com/ruby-git/ruby-git
|
245
250
|
source_code_uri: http://github.com/ruby-git/ruby-git
|
246
|
-
changelog_uri: https://rubydoc.info/gems/git/
|
247
|
-
documentation_uri: https://rubydoc.info/gems/git/
|
248
|
-
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
|
249
253
|
rdoc_options: []
|
250
254
|
require_paths:
|
251
255
|
- lib
|
@@ -261,8 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
265
|
version: '0'
|
262
266
|
requirements:
|
263
267
|
- git 2.28.0 or greater
|
264
|
-
rubygems_version: 3.
|
265
|
-
signing_key:
|
268
|
+
rubygems_version: 3.6.7
|
266
269
|
specification_version: 4
|
267
270
|
summary: An API to create, read, and manipulate Git repositories
|
268
271
|
test_files: []
|
data/RELEASING.md
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
# @markup markdown
|
3
|
-
# @title Releasing
|
4
|
-
-->
|
5
|
-
|
6
|
-
# How to release a new git.gem
|
7
|
-
|
8
|
-
Releasing a new version of the `git` gem requires these steps:
|
9
|
-
|
10
|
-
* [Install Prerequisites](#install-prerequisites)
|
11
|
-
* [Determine the SemVer release type](#determine-the-semver-release-type)
|
12
|
-
* [Create the release](#create-the-release)
|
13
|
-
* [Review the CHANGELOG and release PR](#review-the-changelog-and-release-pr)
|
14
|
-
* [Manually merge the release PR](#manually-merge-the-release-pr)
|
15
|
-
* [Publish the git gem to RubyGems.org](#publish-the-git-gem-to-rubygemsorg)
|
16
|
-
|
17
|
-
## Install Prerequisites
|
18
|
-
|
19
|
-
The following tools need to be installed in order to create the release:
|
20
|
-
|
21
|
-
* [create_githhub_release](https://github.com/main-branch/create_github_release) is used to create the release
|
22
|
-
* [git](https://git-scm.com) is used by `create-github-release` to interact with the local and remote repositories
|
23
|
-
* [gh](https://cli.github.com) is used by `create-github-release` to create the release and PR in GitHub
|
24
|
-
|
25
|
-
On a Mac, these tools can be installed using [gem](https://guides.rubygems.org/rubygems-basics/) and [brew](https://brew.sh):
|
26
|
-
|
27
|
-
```shell
|
28
|
-
$ gem install create_github_release
|
29
|
-
...
|
30
|
-
$ brew install git
|
31
|
-
...
|
32
|
-
$ brew install gh
|
33
|
-
...
|
34
|
-
$
|
35
|
-
```
|
36
|
-
|
37
|
-
## Determine the SemVer release type
|
38
|
-
|
39
|
-
Determine the SemVer version increment that should be applied for the new release:
|
40
|
-
|
41
|
-
* `major`: when the release includes incompatible API or functional changes.
|
42
|
-
* `minor`: when the release adds functionality in a backward-compatible manner
|
43
|
-
* `patch`: when the release includes small user-facing changes that are
|
44
|
-
backward-compatible and do not introduce new functionality.
|
45
|
-
|
46
|
-
## Create the release
|
47
|
-
|
48
|
-
Create the release using the `create-github-release` command. If the release type
|
49
|
-
is `major`, the command is:
|
50
|
-
|
51
|
-
```shell
|
52
|
-
create-github-release major
|
53
|
-
```
|
54
|
-
|
55
|
-
Follow the directions given by the `create-github-release` command to finish the
|
56
|
-
release. Where the instructions given by the command differ than the instructions
|
57
|
-
below, follow the instructions given by the command.
|
58
|
-
|
59
|
-
## Review the CHANGELOG and release PR
|
60
|
-
|
61
|
-
The `create-github-release` command will output a link to the CHANGELOG and the PR
|
62
|
-
it created for the release. Review the CHANGELOG and have someone review and approve
|
63
|
-
the release PR.
|
64
|
-
|
65
|
-
## Manually merge the release PR
|
66
|
-
|
67
|
-
It is important to manually merge the PR so a separate merge commit can be avoided.
|
68
|
-
Use the commands output by the `create-github-release` which will looks like this
|
69
|
-
if you are creating a 2.0.0 release:
|
70
|
-
|
71
|
-
```shell
|
72
|
-
git checkout master
|
73
|
-
git merge --ff-only release-v2.0.0
|
74
|
-
git push
|
75
|
-
```
|
76
|
-
|
77
|
-
This will automatically close the release PR.
|
78
|
-
|
79
|
-
## Publish the git gem to RubyGems.org
|
80
|
-
|
81
|
-
Finally, publish the git gem to RubyGems.org using the following command:
|
82
|
-
|
83
|
-
```shell
|
84
|
-
rake release:rubygem_push
|
85
|
-
```
|