git 1.4.0 → 1.8.0
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 → CHANGELOG.md} +41 -10
- data/CONTRIBUTING.md +149 -0
- data/MAINTAINERS.md +14 -0
- data/README.md +260 -212
- data/lib/git.rb +186 -46
- data/lib/git/base.rb +192 -147
- data/lib/git/base/factory.rb +47 -21
- data/lib/git/branch.rb +5 -1
- data/lib/git/config.rb +1 -1
- data/lib/git/diff.rb +7 -10
- data/lib/git/lib.rb +259 -77
- data/lib/git/log.rb +8 -1
- data/lib/git/stashes.rb +11 -0
- data/lib/git/status.rb +1 -1
- data/lib/git/version.rb +1 -1
- metadata +91 -36
- data/VERSION +0 -2
data/lib/git/log.rb
CHANGED
@@ -18,6 +18,7 @@ module Git
|
|
18
18
|
@skip = nil
|
19
19
|
@until = nil
|
20
20
|
@between = nil
|
21
|
+
@cherry = nil
|
21
22
|
end
|
22
23
|
|
23
24
|
def object(objectish)
|
@@ -67,6 +68,12 @@ module Git
|
|
67
68
|
@between = [sha1, sha2]
|
68
69
|
return self
|
69
70
|
end
|
71
|
+
|
72
|
+
def cherry
|
73
|
+
dirty_log
|
74
|
+
@cherry = true
|
75
|
+
return self
|
76
|
+
end
|
70
77
|
|
71
78
|
def to_s
|
72
79
|
self.map { |c| c.to_s }.join("\n")
|
@@ -119,7 +126,7 @@ module Git
|
|
119
126
|
log = @base.lib.full_log_commits(:count => @count, :object => @object,
|
120
127
|
:path_limiter => @path, :since => @since,
|
121
128
|
:author => @author, :grep => @grep, :skip => @skip,
|
122
|
-
:until => @until, :between => @between)
|
129
|
+
:until => @until, :between => @between, :cherry => @cherry)
|
123
130
|
@commits = log.map { |c| Git::Object::Commit.new(@base, c['sha'], c) }
|
124
131
|
end
|
125
132
|
|
data/lib/git/stashes.rb
CHANGED
@@ -13,6 +13,17 @@ module Git
|
|
13
13
|
@stashes.unshift(Git::Stash.new(@base, message, true))
|
14
14
|
end
|
15
15
|
end
|
16
|
+
|
17
|
+
#
|
18
|
+
# Returns an multi-dimensional Array of elements that have been stash saved.
|
19
|
+
# Array is based on position and name. See Example
|
20
|
+
#
|
21
|
+
# @example Returns Array of items that have been stashed
|
22
|
+
# .all - [0, "testing-stash-all"]]
|
23
|
+
# @return [Array]
|
24
|
+
def all
|
25
|
+
@base.lib.stashes_all
|
26
|
+
end
|
16
27
|
|
17
28
|
def save(message)
|
18
29
|
s = Git::Stash.new(@base, message)
|
data/lib/git/status.rb
CHANGED
data/lib/git/version.rb
CHANGED
metadata
CHANGED
@@ -1,74 +1,129 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon and others
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rchardet
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitar
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
|
-
- - "
|
31
|
+
- - "~>"
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
33
|
+
version: '0.9'
|
20
34
|
type: :development
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
|
-
- - "
|
38
|
+
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
40
|
+
version: '0.9'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
42
|
+
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
47
|
+
version: '13.0'
|
34
48
|
type: :development
|
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: '0'
|
54
|
+
version: '13.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: test-unit
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: redcarpet
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
46
74
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
|
75
|
+
version: '3.5'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.5'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
49
88
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
89
|
+
version: '0.9'
|
51
90
|
type: :development
|
52
91
|
prerelease: false
|
53
92
|
version_requirements: !ruby/object:Gem::Requirement
|
54
93
|
requirements:
|
55
|
-
- - "
|
94
|
+
- - "~>"
|
56
95
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
58
|
-
|
96
|
+
version: '0.9'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yardstick
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
59
102
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
61
|
-
|
103
|
+
version: '0.9'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.9'
|
111
|
+
description: |
|
112
|
+
The Git Gem provides an API that can be used to create, read, and manipulate
|
113
|
+
Git repositories by wrapping system calls to the `git` binary. The API can be
|
114
|
+
used for working with Git in complex interactions including branching and
|
115
|
+
merging, object inspection and manipulation, history, patch generation and
|
116
|
+
more.
|
62
117
|
email: schacon@gmail.com
|
63
118
|
executables: []
|
64
119
|
extensions: []
|
65
|
-
extra_rdoc_files:
|
66
|
-
- README.md
|
120
|
+
extra_rdoc_files: []
|
67
121
|
files:
|
68
|
-
- CHANGELOG
|
122
|
+
- CHANGELOG.md
|
123
|
+
- CONTRIBUTING.md
|
69
124
|
- LICENSE
|
125
|
+
- MAINTAINERS.md
|
70
126
|
- README.md
|
71
|
-
- VERSION
|
72
127
|
- lib/git.rb
|
73
128
|
- lib/git/author.rb
|
74
129
|
- lib/git/base.rb
|
@@ -92,17 +147,19 @@ files:
|
|
92
147
|
homepage: http://github.com/ruby-git/ruby-git
|
93
148
|
licenses:
|
94
149
|
- MIT
|
95
|
-
metadata:
|
96
|
-
|
97
|
-
|
98
|
-
|
150
|
+
metadata:
|
151
|
+
homepage_uri: http://github.com/ruby-git/ruby-git
|
152
|
+
source_code_uri: http://github.com/ruby-git/ruby-git
|
153
|
+
changelog_uri: http://rubydoc.info/gems/git/file.CHANGELOG.html
|
154
|
+
post_install_message:
|
155
|
+
rdoc_options: []
|
99
156
|
require_paths:
|
100
157
|
- lib
|
101
158
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
159
|
requirements:
|
103
160
|
- - ">="
|
104
161
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
162
|
+
version: '2.3'
|
106
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
164
|
requirements:
|
108
165
|
- - ">="
|
@@ -110,10 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
167
|
version: '0'
|
111
168
|
requirements:
|
112
169
|
- git 1.6.0.0, or greater
|
113
|
-
|
114
|
-
|
115
|
-
signing_key:
|
170
|
+
rubygems_version: 3.1.4
|
171
|
+
signing_key:
|
116
172
|
specification_version: 4
|
117
|
-
summary:
|
118
|
-
Git repositories by wrapping system calls to the git binary.
|
173
|
+
summary: An API to create, read, and manipulate Git repositories
|
119
174
|
test_files: []
|
data/VERSION
DELETED