git 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of git might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +8 -0
- data/lib/git/lib.rb +8 -1
- data/lib/git/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c98b8817ceb2d65efcf09cd2461023a5fb514fb738524332dbd98daae2b8cf0
|
4
|
+
data.tar.gz: 7fa575c50ed9f3c85bbd9aadd6e1d0a74d4421f9b3d612d43f761a1d77f7b1e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecec9d8d598576983f48b9193ebadb4dc0a53745df0b0c27466ee075947945ea793dbb112107d4e5eaf70cca2cb93c3b0f83489af12d4b42d6336051261124ee
|
7
|
+
data.tar.gz: c164e57a0f9006672826c993719c85a8997e08b2272da7e48e17e945bffb9917d74cb3957ce09c9cb3b8cb4cec03f236b88f0334c5322a948e1f12021ffad5b7
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -226,6 +226,14 @@ g.remove('file.txt', :cached => true) # git rm -f --cached -- "file.txt"
|
|
226
226
|
g.commit('message')
|
227
227
|
g.commit_all('message')
|
228
228
|
|
229
|
+
# Sign a commit using the gpg key configured in the user.signingkey config setting
|
230
|
+
g.config('user.signingkey', '0A46826A')
|
231
|
+
g.commit('message', gpg_sign: true)
|
232
|
+
|
233
|
+
# Sign a commit using a specified gpg key
|
234
|
+
key_id = '0A46826A'
|
235
|
+
g.commit('message', gpg_sign: key_id)
|
236
|
+
|
229
237
|
g = Git.clone(repo, 'myrepo')
|
230
238
|
g.chdir do
|
231
239
|
new_file('test-file', 'blahblahblah')
|
data/lib/git/lib.rb
CHANGED
@@ -660,7 +660,14 @@ module Git
|
|
660
660
|
arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
|
661
661
|
arr_opts << '--no-verify' if opts[:no_verify]
|
662
662
|
arr_opts << '--allow-empty-message' if opts[:allow_empty_message]
|
663
|
-
|
663
|
+
if opts[:gpg_sign]
|
664
|
+
arr_opts <<
|
665
|
+
if opts[:gpg_sign] == true
|
666
|
+
'--gpg-sign'
|
667
|
+
else
|
668
|
+
"--gpg-sign=#{opts[:gpg_sign]}"
|
669
|
+
end
|
670
|
+
end
|
664
671
|
|
665
672
|
command('commit', arr_opts)
|
666
673
|
end
|
data/lib/git/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.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: 2021-07-
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rchardet
|