git 1.19.1 → 5.5.0

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.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +5 -1
  3. data/AI_POLICY.md +24 -0
  4. data/CHANGELOG.md +689 -0
  5. data/CODE_OF_CONDUCT.md +25 -0
  6. data/CONTRIBUTING.md +1175 -97
  7. data/GOVERNANCE.md +106 -0
  8. data/LICENSE +1 -1
  9. data/MAINTAINERS.md +17 -4
  10. data/README.md +476 -320
  11. data/UPGRADING.md +1138 -0
  12. data/git.gemspec +124 -36
  13. data/lib/git/author.rb +39 -7
  14. data/lib/git/author_info.rb +66 -0
  15. data/lib/git/branch.rb +615 -65
  16. data/lib/git/branch_delete_failure.rb +34 -0
  17. data/lib/git/branch_delete_result.rb +66 -0
  18. data/lib/git/branch_info.rb +237 -0
  19. data/lib/git/branches.rb +167 -44
  20. data/lib/git/command_line/base.rb +247 -0
  21. data/lib/git/command_line/capturing.rb +308 -0
  22. data/lib/git/command_line/result.rb +88 -0
  23. data/lib/git/command_line/streaming.rb +236 -0
  24. data/lib/git/command_line.rb +52 -0
  25. data/lib/git/commands/add.rb +139 -0
  26. data/lib/git/commands/am/abort.rb +43 -0
  27. data/lib/git/commands/am/apply.rb +263 -0
  28. data/lib/git/commands/am/continue.rb +43 -0
  29. data/lib/git/commands/am/quit.rb +43 -0
  30. data/lib/git/commands/am/retry.rb +49 -0
  31. data/lib/git/commands/am/show_current_patch.rb +64 -0
  32. data/lib/git/commands/am/skip.rb +42 -0
  33. data/lib/git/commands/am.rb +33 -0
  34. data/lib/git/commands/apply.rb +242 -0
  35. data/lib/git/commands/archive/list_formats.rb +46 -0
  36. data/lib/git/commands/archive.rb +145 -0
  37. data/lib/git/commands/arguments.rb +4521 -0
  38. data/lib/git/commands/base.rb +502 -0
  39. data/lib/git/commands/branch/copy.rb +102 -0
  40. data/lib/git/commands/branch/create.rb +177 -0
  41. data/lib/git/commands/branch/delete.rb +88 -0
  42. data/lib/git/commands/branch/list.rb +178 -0
  43. data/lib/git/commands/branch/move.rb +102 -0
  44. data/lib/git/commands/branch/set_upstream.rb +86 -0
  45. data/lib/git/commands/branch/show_current.rb +49 -0
  46. data/lib/git/commands/branch/unset_upstream.rb +53 -0
  47. data/lib/git/commands/branch.rb +34 -0
  48. data/lib/git/commands/cat_file/batch.rb +385 -0
  49. data/lib/git/commands/cat_file/filtered.rb +105 -0
  50. data/lib/git/commands/cat_file/raw.rb +271 -0
  51. data/lib/git/commands/cat_file.rb +49 -0
  52. data/lib/git/commands/checkout/branch.rb +153 -0
  53. data/lib/git/commands/checkout/files.rb +116 -0
  54. data/lib/git/commands/checkout.rb +38 -0
  55. data/lib/git/commands/checkout_index.rb +106 -0
  56. data/lib/git/commands/clean.rb +102 -0
  57. data/lib/git/commands/clone.rb +241 -0
  58. data/lib/git/commands/commit.rb +273 -0
  59. data/lib/git/commands/commit_tree.rb +101 -0
  60. data/lib/git/commands/config_option_syntax/add.rb +86 -0
  61. data/lib/git/commands/config_option_syntax/get.rb +121 -0
  62. data/lib/git/commands/config_option_syntax/get_all.rb +118 -0
  63. data/lib/git/commands/config_option_syntax/get_color.rb +95 -0
  64. data/lib/git/commands/config_option_syntax/get_color_bool.rb +96 -0
  65. data/lib/git/commands/config_option_syntax/get_regexp.rb +119 -0
  66. data/lib/git/commands/config_option_syntax/get_urlmatch.rb +111 -0
  67. data/lib/git/commands/config_option_syntax/list.rb +111 -0
  68. data/lib/git/commands/config_option_syntax/remove_section.rb +79 -0
  69. data/lib/git/commands/config_option_syntax/rename_section.rb +83 -0
  70. data/lib/git/commands/config_option_syntax/replace_all.rb +109 -0
  71. data/lib/git/commands/config_option_syntax/set.rb +119 -0
  72. data/lib/git/commands/config_option_syntax/unset.rb +92 -0
  73. data/lib/git/commands/config_option_syntax/unset_all.rb +94 -0
  74. data/lib/git/commands/config_option_syntax.rb +56 -0
  75. data/lib/git/commands/describe.rb +156 -0
  76. data/lib/git/commands/diff.rb +657 -0
  77. data/lib/git/commands/diff_files.rb +519 -0
  78. data/lib/git/commands/diff_index.rb +499 -0
  79. data/lib/git/commands/fetch.rb +354 -0
  80. data/lib/git/commands/fsck.rb +138 -0
  81. data/lib/git/commands/gc.rb +134 -0
  82. data/lib/git/commands/grep.rb +339 -0
  83. data/lib/git/commands/init.rb +101 -0
  84. data/lib/git/commands/log.rb +634 -0
  85. data/lib/git/commands/ls_files.rb +195 -0
  86. data/lib/git/commands/ls_remote.rb +161 -0
  87. data/lib/git/commands/ls_tree.rb +135 -0
  88. data/lib/git/commands/maintenance/register.rb +77 -0
  89. data/lib/git/commands/maintenance/run.rb +109 -0
  90. data/lib/git/commands/maintenance/start.rb +71 -0
  91. data/lib/git/commands/maintenance/stop.rb +60 -0
  92. data/lib/git/commands/maintenance/unregister.rb +84 -0
  93. data/lib/git/commands/maintenance.rb +31 -0
  94. data/lib/git/commands/merge/abort.rb +44 -0
  95. data/lib/git/commands/merge/continue.rb +44 -0
  96. data/lib/git/commands/merge/quit.rb +46 -0
  97. data/lib/git/commands/merge/start.rb +250 -0
  98. data/lib/git/commands/merge.rb +28 -0
  99. data/lib/git/commands/merge_base.rb +91 -0
  100. data/lib/git/commands/mv.rb +82 -0
  101. data/lib/git/commands/name_rev.rb +119 -0
  102. data/lib/git/commands/pull.rb +382 -0
  103. data/lib/git/commands/push.rb +251 -0
  104. data/lib/git/commands/read_tree.rb +154 -0
  105. data/lib/git/commands/remote/add.rb +96 -0
  106. data/lib/git/commands/remote/get_url.rb +68 -0
  107. data/lib/git/commands/remote/list.rb +56 -0
  108. data/lib/git/commands/remote/prune.rb +63 -0
  109. data/lib/git/commands/remote/remove.rb +52 -0
  110. data/lib/git/commands/remote/rename.rb +76 -0
  111. data/lib/git/commands/remote/set_branches.rb +70 -0
  112. data/lib/git/commands/remote/set_head.rb +89 -0
  113. data/lib/git/commands/remote/set_url.rb +78 -0
  114. data/lib/git/commands/remote/set_url_add.rb +70 -0
  115. data/lib/git/commands/remote/set_url_delete.rb +71 -0
  116. data/lib/git/commands/remote/show.rb +77 -0
  117. data/lib/git/commands/remote/update.rb +79 -0
  118. data/lib/git/commands/remote.rb +42 -0
  119. data/lib/git/commands/repack.rb +281 -0
  120. data/lib/git/commands/reset.rb +154 -0
  121. data/lib/git/commands/rev_parse.rb +304 -0
  122. data/lib/git/commands/revert/abort.rb +45 -0
  123. data/lib/git/commands/revert/continue.rb +62 -0
  124. data/lib/git/commands/revert/quit.rb +47 -0
  125. data/lib/git/commands/revert/skip.rb +44 -0
  126. data/lib/git/commands/revert/start.rb +158 -0
  127. data/lib/git/commands/revert.rb +29 -0
  128. data/lib/git/commands/rm.rb +113 -0
  129. data/lib/git/commands/show.rb +632 -0
  130. data/lib/git/commands/show_ref/exclude_existing.rb +119 -0
  131. data/lib/git/commands/show_ref/exists.rb +80 -0
  132. data/lib/git/commands/show_ref/list.rb +149 -0
  133. data/lib/git/commands/show_ref/verify.rb +122 -0
  134. data/lib/git/commands/show_ref.rb +42 -0
  135. data/lib/git/commands/stash/apply.rb +81 -0
  136. data/lib/git/commands/stash/branch.rb +67 -0
  137. data/lib/git/commands/stash/clear.rb +43 -0
  138. data/lib/git/commands/stash/create.rb +60 -0
  139. data/lib/git/commands/stash/drop.rb +73 -0
  140. data/lib/git/commands/stash/list.rb +43 -0
  141. data/lib/git/commands/stash/pop.rb +87 -0
  142. data/lib/git/commands/stash/push.rb +112 -0
  143. data/lib/git/commands/stash/show.rb +158 -0
  144. data/lib/git/commands/stash/store.rb +72 -0
  145. data/lib/git/commands/stash.rb +38 -0
  146. data/lib/git/commands/status.rb +174 -0
  147. data/lib/git/commands/symbolic_ref/delete.rb +72 -0
  148. data/lib/git/commands/symbolic_ref/read.rb +99 -0
  149. data/lib/git/commands/symbolic_ref/update.rb +79 -0
  150. data/lib/git/commands/symbolic_ref.rb +38 -0
  151. data/lib/git/commands/tag/create.rb +142 -0
  152. data/lib/git/commands/tag/delete.rb +57 -0
  153. data/lib/git/commands/tag/list.rb +146 -0
  154. data/lib/git/commands/tag/verify.rb +71 -0
  155. data/lib/git/commands/tag.rb +26 -0
  156. data/lib/git/commands/update_ref/batch.rb +145 -0
  157. data/lib/git/commands/update_ref/delete.rb +90 -0
  158. data/lib/git/commands/update_ref/update.rb +103 -0
  159. data/lib/git/commands/update_ref.rb +42 -0
  160. data/lib/git/commands/version.rb +60 -0
  161. data/lib/git/commands/worktree/add.rb +139 -0
  162. data/lib/git/commands/worktree/list.rb +64 -0
  163. data/lib/git/commands/worktree/lock.rb +58 -0
  164. data/lib/git/commands/worktree/management_base.rb +51 -0
  165. data/lib/git/commands/worktree/move.rb +66 -0
  166. data/lib/git/commands/worktree/prune.rb +67 -0
  167. data/lib/git/commands/worktree/remove.rb +63 -0
  168. data/lib/git/commands/worktree/repair.rb +76 -0
  169. data/lib/git/commands/worktree/unlock.rb +47 -0
  170. data/lib/git/commands/worktree.rb +43 -0
  171. data/lib/git/commands/write_tree.rb +68 -0
  172. data/lib/git/commands.rb +88 -0
  173. data/lib/git/config.rb +72 -5
  174. data/lib/git/config_entry_info.rb +106 -0
  175. data/lib/git/configuring.rb +795 -0
  176. data/lib/git/detached_head_info.rb +57 -0
  177. data/lib/git/diff.rb +437 -86
  178. data/lib/git/diff_file_numstat_info.rb +31 -0
  179. data/lib/git/diff_file_patch_info.rb +136 -0
  180. data/lib/git/diff_file_raw_info.rb +129 -0
  181. data/lib/git/diff_info.rb +162 -0
  182. data/lib/git/diff_path_status.rb +107 -0
  183. data/lib/git/diff_result.rb +34 -0
  184. data/lib/git/diff_stats.rb +111 -0
  185. data/lib/git/dirstat_info.rb +102 -0
  186. data/lib/git/encoding_utils.rb +32 -1
  187. data/lib/git/errors.rb +285 -0
  188. data/lib/git/escaped_path.rb +57 -5
  189. data/lib/git/execution_context/global.rb +31 -0
  190. data/lib/git/execution_context/repository.rb +151 -0
  191. data/lib/git/execution_context.rb +559 -0
  192. data/lib/git/factories.rb +813 -0
  193. data/lib/git/file_ref.rb +77 -0
  194. data/lib/git/fsck_object.rb +56 -0
  195. data/lib/git/fsck_result.rb +132 -0
  196. data/lib/git/log.rb +306 -90
  197. data/lib/git/object.rb +563 -141
  198. data/lib/git/parsers/branch.rb +240 -0
  199. data/lib/git/parsers/cat_file.rb +111 -0
  200. data/lib/git/parsers/config_entry.rb +110 -0
  201. data/lib/git/parsers/diff.rb +792 -0
  202. data/lib/git/parsers/fsck.rb +144 -0
  203. data/lib/git/parsers/grep.rb +42 -0
  204. data/lib/git/parsers/ls_remote.rb +79 -0
  205. data/lib/git/parsers/ls_tree.rb +58 -0
  206. data/lib/git/parsers/remote.rb +162 -0
  207. data/lib/git/parsers/stash.rb +292 -0
  208. data/lib/git/parsers/status.rb +251 -0
  209. data/lib/git/parsers/tag.rb +341 -0
  210. data/lib/git/parsers/worktree.rb +185 -0
  211. data/lib/git/path_resolver.rb +206 -0
  212. data/lib/git/remote.rb +165 -12
  213. data/lib/git/remote_info.rb +203 -0
  214. data/lib/git/repository/branching.rb +964 -0
  215. data/lib/git/repository/committing.rb +246 -0
  216. data/lib/git/repository/context_helpers.rb +293 -0
  217. data/lib/git/repository/diffing.rb +785 -0
  218. data/lib/git/repository/inspecting.rb +252 -0
  219. data/lib/git/repository/logging.rb +410 -0
  220. data/lib/git/repository/maintenance.rb +65 -0
  221. data/lib/git/repository/merging.rb +451 -0
  222. data/lib/git/repository/object_operations.rb +1551 -0
  223. data/lib/git/repository/remote_operations.rb +984 -0
  224. data/lib/git/repository/shared_private.rb +120 -0
  225. data/lib/git/repository/staging.rb +587 -0
  226. data/lib/git/repository/stashing.rb +623 -0
  227. data/lib/git/repository/status_operations.rb +249 -0
  228. data/lib/git/repository/worktree_operations.rb +339 -0
  229. data/lib/git/repository.rb +484 -2
  230. data/lib/git/stash.rb +109 -12
  231. data/lib/git/stash_info.rb +102 -0
  232. data/lib/git/stashes.rb +169 -26
  233. data/lib/git/status.rb +308 -122
  234. data/lib/git/status_file_info.rb +258 -0
  235. data/lib/git/status_info.rb +189 -0
  236. data/lib/git/tag_delete_failure.rb +34 -0
  237. data/lib/git/tag_delete_result.rb +66 -0
  238. data/lib/git/tag_info.rb +99 -0
  239. data/lib/git/url.rb +15 -8
  240. data/lib/git/version.rb +113 -2
  241. data/lib/git/version_constraint.rb +85 -0
  242. data/lib/git/worktree.rb +150 -8
  243. data/lib/git/worktree_info.rb +128 -0
  244. data/lib/git/worktrees.rb +118 -13
  245. data/lib/git.rb +632 -234
  246. metadata +369 -54
  247. data/.github/stale.yml +0 -25
  248. data/.github/workflows/continuous_integration.yml +0 -49
  249. data/.gitignore +0 -10
  250. data/Dockerfile.changelog-rs +0 -12
  251. data/Gemfile +0 -5
  252. data/ISSUE_TEMPLATE.md +0 -15
  253. data/PULL_REQUEST_TEMPLATE.md +0 -9
  254. data/RELEASING.md +0 -70
  255. data/Rakefile +0 -60
  256. data/lib/git/base/factory.rb +0 -99
  257. data/lib/git/base.rb +0 -711
  258. data/lib/git/command_line_result.rb +0 -86
  259. data/lib/git/failed_error.rb +0 -53
  260. data/lib/git/git_execute_error.rb +0 -7
  261. data/lib/git/index.rb +0 -5
  262. data/lib/git/lib.rb +0 -1328
  263. data/lib/git/path.rb +0 -31
  264. data/lib/git/signaled_error.rb +0 -50
  265. data/lib/git/working_directory.rb +0 -4
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.19.1
4
+ version: 5.5.0
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: 2024-01-13 00:00:00.000000000 Z
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
@@ -24,118 +37,202 @@ dependencies:
24
37
  - - "~>"
25
38
  - !ruby/object:Gem::Version
26
39
  version: '2.8'
40
+ - !ruby/object:Gem::Dependency
41
+ name: process_executer
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '4.1'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '4.1'
27
54
  - !ruby/object:Gem::Dependency
28
55
  name: rchardet
29
56
  requirement: !ruby/object:Gem::Requirement
30
57
  requirements:
31
58
  - - "~>"
32
59
  - !ruby/object:Gem::Version
33
- version: '1.8'
60
+ version: '1.9'
34
61
  type: :runtime
35
62
  prerelease: false
36
63
  version_requirements: !ruby/object:Gem::Requirement
37
64
  requirements:
38
65
  - - "~>"
39
66
  - !ruby/object:Gem::Version
40
- version: '1.8'
67
+ version: '1.9'
41
68
  - !ruby/object:Gem::Dependency
42
- name: bump
69
+ name: create_github_release
43
70
  requirement: !ruby/object:Gem::Requirement
44
71
  requirements:
45
72
  - - "~>"
46
73
  - !ruby/object:Gem::Version
47
- version: '0.10'
74
+ version: '2.1'
48
75
  type: :development
49
76
  prerelease: false
50
77
  version_requirements: !ruby/object:Gem::Requirement
51
78
  requirements:
52
79
  - - "~>"
53
80
  - !ruby/object:Gem::Version
54
- version: '0.10'
81
+ version: '2.1'
55
82
  - !ruby/object:Gem::Dependency
56
- name: create_github_release
83
+ name: fuubar
57
84
  requirement: !ruby/object:Gem::Requirement
58
85
  requirements:
59
86
  - - "~>"
60
87
  - !ruby/object:Gem::Version
61
- version: '0.2'
88
+ version: '2.5'
62
89
  type: :development
63
90
  prerelease: false
64
91
  version_requirements: !ruby/object:Gem::Requirement
65
92
  requirements:
66
93
  - - "~>"
67
94
  - !ruby/object:Gem::Version
68
- version: '0.2'
95
+ version: '2.5'
69
96
  - !ruby/object:Gem::Dependency
70
- name: minitar
97
+ name: irb
71
98
  requirement: !ruby/object:Gem::Requirement
72
99
  requirements:
73
100
  - - "~>"
74
101
  - !ruby/object:Gem::Version
75
- version: '0.9'
102
+ version: '1.16'
76
103
  type: :development
77
104
  prerelease: false
78
105
  version_requirements: !ruby/object:Gem::Requirement
79
106
  requirements:
80
107
  - - "~>"
81
108
  - !ruby/object:Gem::Version
82
- version: '0.9'
109
+ version: '1.16'
83
110
  - !ruby/object:Gem::Dependency
84
- name: mocha
111
+ name: main_branch_shared_rubocop_config
85
112
  requirement: !ruby/object:Gem::Requirement
86
113
  requirements:
87
114
  - - "~>"
88
115
  - !ruby/object:Gem::Version
89
- version: '2.1'
116
+ version: '0.1'
90
117
  type: :development
91
118
  prerelease: false
92
119
  version_requirements: !ruby/object:Gem::Requirement
93
120
  requirements:
94
121
  - - "~>"
95
122
  - !ruby/object:Gem::Version
96
- version: '2.1'
123
+ version: '0.1'
97
124
  - !ruby/object:Gem::Dependency
98
- name: rake
125
+ name: parallel_tests
99
126
  requirement: !ruby/object:Gem::Requirement
100
127
  requirements:
101
128
  - - "~>"
102
129
  - !ruby/object:Gem::Version
103
- version: '13.0'
130
+ version: '5.6'
104
131
  type: :development
105
132
  prerelease: false
106
133
  version_requirements: !ruby/object:Gem::Requirement
107
134
  requirements:
108
135
  - - "~>"
109
136
  - !ruby/object:Gem::Version
110
- version: '13.0'
137
+ version: '5.6'
111
138
  - !ruby/object:Gem::Dependency
112
- name: test-unit
139
+ name: rake
113
140
  requirement: !ruby/object:Gem::Requirement
114
141
  requirements:
115
142
  - - "~>"
116
143
  - !ruby/object:Gem::Version
117
- version: '3.3'
144
+ version: '13.3'
118
145
  type: :development
119
146
  prerelease: false
120
147
  version_requirements: !ruby/object:Gem::Requirement
121
148
  requirements:
122
149
  - - "~>"
123
150
  - !ruby/object:Gem::Version
124
- version: '3.3'
151
+ version: '13.3'
125
152
  - !ruby/object:Gem::Dependency
126
153
  name: redcarpet
127
154
  requirement: !ruby/object:Gem::Requirement
128
155
  requirements:
129
156
  - - "~>"
130
157
  - !ruby/object:Gem::Version
131
- version: '3.5'
158
+ version: '3.6'
159
+ type: :development
160
+ prerelease: false
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '3.6'
166
+ - !ruby/object:Gem::Dependency
167
+ name: rspec
168
+ requirement: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '3.13'
173
+ type: :development
174
+ prerelease: false
175
+ version_requirements: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: '3.13'
180
+ - !ruby/object:Gem::Dependency
181
+ name: rubocop
182
+ requirement: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: '1.82'
132
187
  type: :development
133
188
  prerelease: false
134
189
  version_requirements: !ruby/object:Gem::Requirement
135
190
  requirements:
136
191
  - - "~>"
137
192
  - !ruby/object:Gem::Version
138
- version: '3.5'
193
+ version: '1.82'
194
+ - !ruby/object:Gem::Dependency
195
+ name: simplecov
196
+ requirement: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '1.0'
201
+ type: :development
202
+ prerelease: false
203
+ version_requirements: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: '1.0'
208
+ - !ruby/object:Gem::Dependency
209
+ name: simplecov-lcov
210
+ requirement: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - "~>"
213
+ - !ruby/object:Gem::Version
214
+ version: '0.9'
215
+ type: :development
216
+ prerelease: false
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - "~>"
220
+ - !ruby/object:Gem::Version
221
+ version: '0.9'
222
+ - !ruby/object:Gem::Dependency
223
+ name: simplecov-rspec
224
+ requirement: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: '1.1'
229
+ type: :development
230
+ prerelease: false
231
+ version_requirements: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - "~>"
234
+ - !ruby/object:Gem::Version
235
+ version: '1.1'
139
236
  - !ruby/object:Gem::Dependency
140
237
  name: yard
141
238
  requirement: !ruby/object:Gem::Requirement
@@ -157,19 +254,39 @@ dependencies:
157
254
  - !ruby/object:Gem::Version
158
255
  version: 0.9.28
159
256
  - !ruby/object:Gem::Dependency
160
- name: yardstick
257
+ name: yard_example_test
161
258
  requirement: !ruby/object:Gem::Requirement
162
259
  requirements:
163
260
  - - "~>"
164
261
  - !ruby/object:Gem::Version
165
- version: '0.9'
262
+ version: '0.2'
263
+ - - ">="
264
+ - !ruby/object:Gem::Version
265
+ version: 0.2.1
166
266
  type: :development
167
267
  prerelease: false
168
268
  version_requirements: !ruby/object:Gem::Requirement
169
269
  requirements:
170
270
  - - "~>"
171
271
  - !ruby/object:Gem::Version
172
- version: '0.9'
272
+ version: '0.2'
273
+ - - ">="
274
+ - !ruby/object:Gem::Version
275
+ version: 0.2.1
276
+ - !ruby/object:Gem::Dependency
277
+ name: yard-lint
278
+ requirement: !ruby/object:Gem::Requirement
279
+ requirements:
280
+ - - "~>"
281
+ - !ruby/object:Gem::Version
282
+ version: '1.8'
283
+ type: :development
284
+ prerelease: false
285
+ version_requirements: !ruby/object:Gem::Requirement
286
+ requirements:
287
+ - - "~>"
288
+ - !ruby/object:Gem::Version
289
+ version: '1.8'
173
290
  description: |
174
291
  The git gem provides an API that can be used to
175
292
  create, read, and manipulate Git repositories by wrapping system calls to the git
@@ -181,50 +298,249 @@ executables: []
181
298
  extensions: []
182
299
  extra_rdoc_files: []
183
300
  files:
184
- - ".github/stale.yml"
185
- - ".github/workflows/continuous_integration.yml"
186
- - ".gitignore"
187
301
  - ".yardopts"
302
+ - AI_POLICY.md
188
303
  - CHANGELOG.md
304
+ - CODE_OF_CONDUCT.md
189
305
  - CONTRIBUTING.md
190
- - Dockerfile.changelog-rs
191
- - Gemfile
192
- - ISSUE_TEMPLATE.md
306
+ - GOVERNANCE.md
193
307
  - LICENSE
194
308
  - MAINTAINERS.md
195
- - PULL_REQUEST_TEMPLATE.md
196
309
  - README.md
197
- - RELEASING.md
198
- - Rakefile
310
+ - UPGRADING.md
199
311
  - git.gemspec
200
312
  - lib/git.rb
201
313
  - lib/git/author.rb
202
- - lib/git/base.rb
203
- - lib/git/base/factory.rb
314
+ - lib/git/author_info.rb
204
315
  - lib/git/branch.rb
316
+ - lib/git/branch_delete_failure.rb
317
+ - lib/git/branch_delete_result.rb
318
+ - lib/git/branch_info.rb
205
319
  - lib/git/branches.rb
206
- - lib/git/command_line_result.rb
320
+ - lib/git/command_line.rb
321
+ - lib/git/command_line/base.rb
322
+ - lib/git/command_line/capturing.rb
323
+ - lib/git/command_line/result.rb
324
+ - lib/git/command_line/streaming.rb
325
+ - lib/git/commands.rb
326
+ - lib/git/commands/add.rb
327
+ - lib/git/commands/am.rb
328
+ - lib/git/commands/am/abort.rb
329
+ - lib/git/commands/am/apply.rb
330
+ - lib/git/commands/am/continue.rb
331
+ - lib/git/commands/am/quit.rb
332
+ - lib/git/commands/am/retry.rb
333
+ - lib/git/commands/am/show_current_patch.rb
334
+ - lib/git/commands/am/skip.rb
335
+ - lib/git/commands/apply.rb
336
+ - lib/git/commands/archive.rb
337
+ - lib/git/commands/archive/list_formats.rb
338
+ - lib/git/commands/arguments.rb
339
+ - lib/git/commands/base.rb
340
+ - lib/git/commands/branch.rb
341
+ - lib/git/commands/branch/copy.rb
342
+ - lib/git/commands/branch/create.rb
343
+ - lib/git/commands/branch/delete.rb
344
+ - lib/git/commands/branch/list.rb
345
+ - lib/git/commands/branch/move.rb
346
+ - lib/git/commands/branch/set_upstream.rb
347
+ - lib/git/commands/branch/show_current.rb
348
+ - lib/git/commands/branch/unset_upstream.rb
349
+ - lib/git/commands/cat_file.rb
350
+ - lib/git/commands/cat_file/batch.rb
351
+ - lib/git/commands/cat_file/filtered.rb
352
+ - lib/git/commands/cat_file/raw.rb
353
+ - lib/git/commands/checkout.rb
354
+ - lib/git/commands/checkout/branch.rb
355
+ - lib/git/commands/checkout/files.rb
356
+ - lib/git/commands/checkout_index.rb
357
+ - lib/git/commands/clean.rb
358
+ - lib/git/commands/clone.rb
359
+ - lib/git/commands/commit.rb
360
+ - lib/git/commands/commit_tree.rb
361
+ - lib/git/commands/config_option_syntax.rb
362
+ - lib/git/commands/config_option_syntax/add.rb
363
+ - lib/git/commands/config_option_syntax/get.rb
364
+ - lib/git/commands/config_option_syntax/get_all.rb
365
+ - lib/git/commands/config_option_syntax/get_color.rb
366
+ - lib/git/commands/config_option_syntax/get_color_bool.rb
367
+ - lib/git/commands/config_option_syntax/get_regexp.rb
368
+ - lib/git/commands/config_option_syntax/get_urlmatch.rb
369
+ - lib/git/commands/config_option_syntax/list.rb
370
+ - lib/git/commands/config_option_syntax/remove_section.rb
371
+ - lib/git/commands/config_option_syntax/rename_section.rb
372
+ - lib/git/commands/config_option_syntax/replace_all.rb
373
+ - lib/git/commands/config_option_syntax/set.rb
374
+ - lib/git/commands/config_option_syntax/unset.rb
375
+ - lib/git/commands/config_option_syntax/unset_all.rb
376
+ - lib/git/commands/describe.rb
377
+ - lib/git/commands/diff.rb
378
+ - lib/git/commands/diff_files.rb
379
+ - lib/git/commands/diff_index.rb
380
+ - lib/git/commands/fetch.rb
381
+ - lib/git/commands/fsck.rb
382
+ - lib/git/commands/gc.rb
383
+ - lib/git/commands/grep.rb
384
+ - lib/git/commands/init.rb
385
+ - lib/git/commands/log.rb
386
+ - lib/git/commands/ls_files.rb
387
+ - lib/git/commands/ls_remote.rb
388
+ - lib/git/commands/ls_tree.rb
389
+ - lib/git/commands/maintenance.rb
390
+ - lib/git/commands/maintenance/register.rb
391
+ - lib/git/commands/maintenance/run.rb
392
+ - lib/git/commands/maintenance/start.rb
393
+ - lib/git/commands/maintenance/stop.rb
394
+ - lib/git/commands/maintenance/unregister.rb
395
+ - lib/git/commands/merge.rb
396
+ - lib/git/commands/merge/abort.rb
397
+ - lib/git/commands/merge/continue.rb
398
+ - lib/git/commands/merge/quit.rb
399
+ - lib/git/commands/merge/start.rb
400
+ - lib/git/commands/merge_base.rb
401
+ - lib/git/commands/mv.rb
402
+ - lib/git/commands/name_rev.rb
403
+ - lib/git/commands/pull.rb
404
+ - lib/git/commands/push.rb
405
+ - lib/git/commands/read_tree.rb
406
+ - lib/git/commands/remote.rb
407
+ - lib/git/commands/remote/add.rb
408
+ - lib/git/commands/remote/get_url.rb
409
+ - lib/git/commands/remote/list.rb
410
+ - lib/git/commands/remote/prune.rb
411
+ - lib/git/commands/remote/remove.rb
412
+ - lib/git/commands/remote/rename.rb
413
+ - lib/git/commands/remote/set_branches.rb
414
+ - lib/git/commands/remote/set_head.rb
415
+ - lib/git/commands/remote/set_url.rb
416
+ - lib/git/commands/remote/set_url_add.rb
417
+ - lib/git/commands/remote/set_url_delete.rb
418
+ - lib/git/commands/remote/show.rb
419
+ - lib/git/commands/remote/update.rb
420
+ - lib/git/commands/repack.rb
421
+ - lib/git/commands/reset.rb
422
+ - lib/git/commands/rev_parse.rb
423
+ - lib/git/commands/revert.rb
424
+ - lib/git/commands/revert/abort.rb
425
+ - lib/git/commands/revert/continue.rb
426
+ - lib/git/commands/revert/quit.rb
427
+ - lib/git/commands/revert/skip.rb
428
+ - lib/git/commands/revert/start.rb
429
+ - lib/git/commands/rm.rb
430
+ - lib/git/commands/show.rb
431
+ - lib/git/commands/show_ref.rb
432
+ - lib/git/commands/show_ref/exclude_existing.rb
433
+ - lib/git/commands/show_ref/exists.rb
434
+ - lib/git/commands/show_ref/list.rb
435
+ - lib/git/commands/show_ref/verify.rb
436
+ - lib/git/commands/stash.rb
437
+ - lib/git/commands/stash/apply.rb
438
+ - lib/git/commands/stash/branch.rb
439
+ - lib/git/commands/stash/clear.rb
440
+ - lib/git/commands/stash/create.rb
441
+ - lib/git/commands/stash/drop.rb
442
+ - lib/git/commands/stash/list.rb
443
+ - lib/git/commands/stash/pop.rb
444
+ - lib/git/commands/stash/push.rb
445
+ - lib/git/commands/stash/show.rb
446
+ - lib/git/commands/stash/store.rb
447
+ - lib/git/commands/status.rb
448
+ - lib/git/commands/symbolic_ref.rb
449
+ - lib/git/commands/symbolic_ref/delete.rb
450
+ - lib/git/commands/symbolic_ref/read.rb
451
+ - lib/git/commands/symbolic_ref/update.rb
452
+ - lib/git/commands/tag.rb
453
+ - lib/git/commands/tag/create.rb
454
+ - lib/git/commands/tag/delete.rb
455
+ - lib/git/commands/tag/list.rb
456
+ - lib/git/commands/tag/verify.rb
457
+ - lib/git/commands/update_ref.rb
458
+ - lib/git/commands/update_ref/batch.rb
459
+ - lib/git/commands/update_ref/delete.rb
460
+ - lib/git/commands/update_ref/update.rb
461
+ - lib/git/commands/version.rb
462
+ - lib/git/commands/worktree.rb
463
+ - lib/git/commands/worktree/add.rb
464
+ - lib/git/commands/worktree/list.rb
465
+ - lib/git/commands/worktree/lock.rb
466
+ - lib/git/commands/worktree/management_base.rb
467
+ - lib/git/commands/worktree/move.rb
468
+ - lib/git/commands/worktree/prune.rb
469
+ - lib/git/commands/worktree/remove.rb
470
+ - lib/git/commands/worktree/repair.rb
471
+ - lib/git/commands/worktree/unlock.rb
472
+ - lib/git/commands/write_tree.rb
207
473
  - lib/git/config.rb
474
+ - lib/git/config_entry_info.rb
475
+ - lib/git/configuring.rb
476
+ - lib/git/detached_head_info.rb
208
477
  - lib/git/diff.rb
478
+ - lib/git/diff_file_numstat_info.rb
479
+ - lib/git/diff_file_patch_info.rb
480
+ - lib/git/diff_file_raw_info.rb
481
+ - lib/git/diff_info.rb
482
+ - lib/git/diff_path_status.rb
483
+ - lib/git/diff_result.rb
484
+ - lib/git/diff_stats.rb
485
+ - lib/git/dirstat_info.rb
209
486
  - lib/git/encoding_utils.rb
487
+ - lib/git/errors.rb
210
488
  - lib/git/escaped_path.rb
211
- - lib/git/failed_error.rb
212
- - lib/git/git_execute_error.rb
213
- - lib/git/index.rb
214
- - lib/git/lib.rb
489
+ - lib/git/execution_context.rb
490
+ - lib/git/execution_context/global.rb
491
+ - lib/git/execution_context/repository.rb
492
+ - lib/git/factories.rb
493
+ - lib/git/file_ref.rb
494
+ - lib/git/fsck_object.rb
495
+ - lib/git/fsck_result.rb
215
496
  - lib/git/log.rb
216
497
  - lib/git/object.rb
217
- - lib/git/path.rb
498
+ - lib/git/parsers/branch.rb
499
+ - lib/git/parsers/cat_file.rb
500
+ - lib/git/parsers/config_entry.rb
501
+ - lib/git/parsers/diff.rb
502
+ - lib/git/parsers/fsck.rb
503
+ - lib/git/parsers/grep.rb
504
+ - lib/git/parsers/ls_remote.rb
505
+ - lib/git/parsers/ls_tree.rb
506
+ - lib/git/parsers/remote.rb
507
+ - lib/git/parsers/stash.rb
508
+ - lib/git/parsers/status.rb
509
+ - lib/git/parsers/tag.rb
510
+ - lib/git/parsers/worktree.rb
511
+ - lib/git/path_resolver.rb
218
512
  - lib/git/remote.rb
513
+ - lib/git/remote_info.rb
219
514
  - lib/git/repository.rb
220
- - lib/git/signaled_error.rb
515
+ - lib/git/repository/branching.rb
516
+ - lib/git/repository/committing.rb
517
+ - lib/git/repository/context_helpers.rb
518
+ - lib/git/repository/diffing.rb
519
+ - lib/git/repository/inspecting.rb
520
+ - lib/git/repository/logging.rb
521
+ - lib/git/repository/maintenance.rb
522
+ - lib/git/repository/merging.rb
523
+ - lib/git/repository/object_operations.rb
524
+ - lib/git/repository/remote_operations.rb
525
+ - lib/git/repository/shared_private.rb
526
+ - lib/git/repository/staging.rb
527
+ - lib/git/repository/stashing.rb
528
+ - lib/git/repository/status_operations.rb
529
+ - lib/git/repository/worktree_operations.rb
221
530
  - lib/git/stash.rb
531
+ - lib/git/stash_info.rb
222
532
  - lib/git/stashes.rb
223
533
  - lib/git/status.rb
534
+ - lib/git/status_file_info.rb
535
+ - lib/git/status_info.rb
536
+ - lib/git/tag_delete_failure.rb
537
+ - lib/git/tag_delete_result.rb
538
+ - lib/git/tag_info.rb
224
539
  - lib/git/url.rb
225
540
  - lib/git/version.rb
226
- - lib/git/working_directory.rb
541
+ - lib/git/version_constraint.rb
227
542
  - lib/git/worktree.rb
543
+ - lib/git/worktree_info.rb
228
544
  - lib/git/worktrees.rb
229
545
  homepage: http://github.com/ruby-git/ruby-git
230
546
  licenses:
@@ -232,9 +548,9 @@ licenses:
232
548
  metadata:
233
549
  homepage_uri: http://github.com/ruby-git/ruby-git
234
550
  source_code_uri: http://github.com/ruby-git/ruby-git
235
- changelog_uri: https://rubydoc.info/gems/git/1.19.1/file/CHANGELOG.md
236
- documentation_uri: https://rubydoc.info/gems/git/1.19.1
237
- post_install_message:
551
+ changelog_uri: https://rubydoc.info/gems/git/5.5.0/file/CHANGELOG.md
552
+ documentation_uri: https://rubydoc.info/gems/git/5.5.0
553
+ rubygems_mfa_required: 'true'
238
554
  rdoc_options: []
239
555
  require_paths:
240
556
  - lib
@@ -242,16 +558,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
558
  requirements:
243
559
  - - ">="
244
560
  - !ruby/object:Gem::Version
245
- version: '2.3'
561
+ version: 3.2.0
246
562
  required_rubygems_version: !ruby/object:Gem::Requirement
247
563
  requirements:
248
564
  - - ">="
249
565
  - !ruby/object:Gem::Version
250
566
  version: '0'
251
567
  requirements:
252
- - git 1.6.0.0, or greater
253
- rubygems_version: 3.5.3
254
- signing_key:
568
+ - git 2.28.0 or greater
569
+ rubygems_version: 4.0.16
255
570
  specification_version: 4
256
571
  summary: An API to create, read, and manipulate Git repositories
257
572
  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
@@ -1,49 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [master]
6
- pull_request:
7
- branches: [master]
8
- workflow_dispatch:
9
-
10
- jobs:
11
- continuous_integration_build:
12
- continue-on-error: true
13
- strategy:
14
- fail-fast: false
15
- matrix:
16
- ruby: [2.7, 3.0, 3.1, 3.2]
17
- operating-system: [ubuntu-latest]
18
- include:
19
- - ruby: head
20
- operating-system: ubuntu-latest
21
- - ruby: truffleruby-head
22
- operating-system: ubuntu-latest
23
- - ruby: 2.7
24
- operating-system: windows-latest
25
- - ruby: jruby-head
26
- operating-system: windows-latest
27
-
28
- name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}
29
-
30
- runs-on: ${{ matrix.operating-system }}
31
-
32
- env:
33
- JAVA_OPTS: -Djdk.io.File.enableADS=true
34
-
35
- steps:
36
- - name: Checkout Code
37
- uses: actions/checkout@v3
38
-
39
- - name: Setup Ruby
40
- uses: ruby/setup-ruby@v1
41
- with:
42
- ruby-version: ${{ matrix.ruby }}
43
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
44
-
45
- - name: Run Build
46
- run: bundle exec rake default
47
-
48
- - name: Test Gem
49
- run: bundle exec rake test:gem
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- *.gem
2
- *.kpf
3
- *.sw?
4
- .DS_Store
5
- coverage
6
- doc
7
- .yardoc
8
- pkg
9
- rdoc
10
- Gemfile.lock