git 4.4.6 → 6.0.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 (275) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +348 -39
  4. data/CONTRIBUTING.md +1014 -144
  5. data/README.md +386 -504
  6. data/UPGRADING.md +1822 -0
  7. data/git.gemspec +102 -22
  8. data/lib/git/author_info.rb +65 -0
  9. data/lib/git/branch_delete_failure.rb +34 -0
  10. data/lib/git/branch_delete_result.rb +66 -0
  11. data/lib/git/branch_info.rb +237 -0
  12. data/lib/git/command_line/base.rb +247 -0
  13. data/lib/git/command_line/capturing.rb +308 -0
  14. data/lib/git/command_line/result.rb +88 -0
  15. data/lib/git/command_line/streaming.rb +236 -0
  16. data/lib/git/command_line.rb +45 -323
  17. data/lib/git/commands/add.rb +139 -0
  18. data/lib/git/commands/am/abort.rb +43 -0
  19. data/lib/git/commands/am/apply.rb +263 -0
  20. data/lib/git/commands/am/continue.rb +43 -0
  21. data/lib/git/commands/am/quit.rb +43 -0
  22. data/lib/git/commands/am/retry.rb +49 -0
  23. data/lib/git/commands/am/show_current_patch.rb +64 -0
  24. data/lib/git/commands/am/skip.rb +42 -0
  25. data/lib/git/commands/am.rb +33 -0
  26. data/lib/git/commands/apply.rb +242 -0
  27. data/lib/git/commands/archive/list_formats.rb +46 -0
  28. data/lib/git/commands/archive.rb +145 -0
  29. data/lib/git/commands/arguments.rb +4521 -0
  30. data/lib/git/commands/base.rb +522 -0
  31. data/lib/git/commands/branch/copy.rb +102 -0
  32. data/lib/git/commands/branch/create.rb +177 -0
  33. data/lib/git/commands/branch/delete.rb +88 -0
  34. data/lib/git/commands/branch/list.rb +178 -0
  35. data/lib/git/commands/branch/move.rb +102 -0
  36. data/lib/git/commands/branch/set_upstream.rb +86 -0
  37. data/lib/git/commands/branch/show_current.rb +49 -0
  38. data/lib/git/commands/branch/unset_upstream.rb +53 -0
  39. data/lib/git/commands/branch.rb +34 -0
  40. data/lib/git/commands/cat_file/batch.rb +385 -0
  41. data/lib/git/commands/cat_file/filtered.rb +105 -0
  42. data/lib/git/commands/cat_file/raw.rb +203 -0
  43. data/lib/git/commands/cat_file.rb +49 -0
  44. data/lib/git/commands/checkout/branch.rb +153 -0
  45. data/lib/git/commands/checkout/files.rb +116 -0
  46. data/lib/git/commands/checkout.rb +38 -0
  47. data/lib/git/commands/checkout_index.rb +106 -0
  48. data/lib/git/commands/clean.rb +102 -0
  49. data/lib/git/commands/clone.rb +241 -0
  50. data/lib/git/commands/commit.rb +273 -0
  51. data/lib/git/commands/commit_tree.rb +101 -0
  52. data/lib/git/commands/config_option_syntax/add.rb +86 -0
  53. data/lib/git/commands/config_option_syntax/get.rb +121 -0
  54. data/lib/git/commands/config_option_syntax/get_all.rb +118 -0
  55. data/lib/git/commands/config_option_syntax/get_color.rb +95 -0
  56. data/lib/git/commands/config_option_syntax/get_color_bool.rb +96 -0
  57. data/lib/git/commands/config_option_syntax/get_regexp.rb +119 -0
  58. data/lib/git/commands/config_option_syntax/get_urlmatch.rb +111 -0
  59. data/lib/git/commands/config_option_syntax/list.rb +111 -0
  60. data/lib/git/commands/config_option_syntax/remove_section.rb +79 -0
  61. data/lib/git/commands/config_option_syntax/rename_section.rb +83 -0
  62. data/lib/git/commands/config_option_syntax/replace_all.rb +109 -0
  63. data/lib/git/commands/config_option_syntax/set.rb +119 -0
  64. data/lib/git/commands/config_option_syntax/unset.rb +92 -0
  65. data/lib/git/commands/config_option_syntax/unset_all.rb +94 -0
  66. data/lib/git/commands/config_option_syntax.rb +56 -0
  67. data/lib/git/commands/describe.rb +156 -0
  68. data/lib/git/commands/diff.rb +657 -0
  69. data/lib/git/commands/diff_files.rb +519 -0
  70. data/lib/git/commands/diff_index.rb +499 -0
  71. data/lib/git/commands/fetch.rb +354 -0
  72. data/lib/git/commands/fsck.rb +138 -0
  73. data/lib/git/commands/gc.rb +134 -0
  74. data/lib/git/commands/grep.rb +339 -0
  75. data/lib/git/commands/init.rb +101 -0
  76. data/lib/git/commands/log.rb +634 -0
  77. data/lib/git/commands/ls_files.rb +195 -0
  78. data/lib/git/commands/ls_remote.rb +161 -0
  79. data/lib/git/commands/ls_tree.rb +135 -0
  80. data/lib/git/commands/maintenance/register.rb +73 -0
  81. data/lib/git/commands/maintenance/run.rb +105 -0
  82. data/lib/git/commands/maintenance/start.rb +67 -0
  83. data/lib/git/commands/maintenance/stop.rb +56 -0
  84. data/lib/git/commands/maintenance/unregister.rb +80 -0
  85. data/lib/git/commands/maintenance.rb +29 -0
  86. data/lib/git/commands/merge/abort.rb +44 -0
  87. data/lib/git/commands/merge/continue.rb +44 -0
  88. data/lib/git/commands/merge/quit.rb +46 -0
  89. data/lib/git/commands/merge/start.rb +250 -0
  90. data/lib/git/commands/merge.rb +28 -0
  91. data/lib/git/commands/merge_base.rb +91 -0
  92. data/lib/git/commands/mv.rb +82 -0
  93. data/lib/git/commands/name_rev.rb +119 -0
  94. data/lib/git/commands/pull.rb +382 -0
  95. data/lib/git/commands/push.rb +251 -0
  96. data/lib/git/commands/read_tree.rb +154 -0
  97. data/lib/git/commands/remote/add.rb +96 -0
  98. data/lib/git/commands/remote/get_url.rb +68 -0
  99. data/lib/git/commands/remote/list.rb +56 -0
  100. data/lib/git/commands/remote/prune.rb +63 -0
  101. data/lib/git/commands/remote/remove.rb +52 -0
  102. data/lib/git/commands/remote/rename.rb +76 -0
  103. data/lib/git/commands/remote/set_branches.rb +70 -0
  104. data/lib/git/commands/remote/set_head.rb +89 -0
  105. data/lib/git/commands/remote/set_url.rb +78 -0
  106. data/lib/git/commands/remote/set_url_add.rb +70 -0
  107. data/lib/git/commands/remote/set_url_delete.rb +71 -0
  108. data/lib/git/commands/remote/show.rb +77 -0
  109. data/lib/git/commands/remote/update.rb +79 -0
  110. data/lib/git/commands/remote.rb +42 -0
  111. data/lib/git/commands/repack.rb +281 -0
  112. data/lib/git/commands/reset.rb +154 -0
  113. data/lib/git/commands/rev_parse.rb +304 -0
  114. data/lib/git/commands/revert/abort.rb +45 -0
  115. data/lib/git/commands/revert/continue.rb +62 -0
  116. data/lib/git/commands/revert/quit.rb +47 -0
  117. data/lib/git/commands/revert/skip.rb +44 -0
  118. data/lib/git/commands/revert/start.rb +158 -0
  119. data/lib/git/commands/revert.rb +29 -0
  120. data/lib/git/commands/rm.rb +113 -0
  121. data/lib/git/commands/show.rb +632 -0
  122. data/lib/git/commands/show_ref/exclude_existing.rb +119 -0
  123. data/lib/git/commands/show_ref/exists.rb +75 -0
  124. data/lib/git/commands/show_ref/list.rb +149 -0
  125. data/lib/git/commands/show_ref/verify.rb +122 -0
  126. data/lib/git/commands/show_ref.rb +42 -0
  127. data/lib/git/commands/stash/apply.rb +81 -0
  128. data/lib/git/commands/stash/branch.rb +67 -0
  129. data/lib/git/commands/stash/clear.rb +43 -0
  130. data/lib/git/commands/stash/create.rb +60 -0
  131. data/lib/git/commands/stash/drop.rb +73 -0
  132. data/lib/git/commands/stash/list.rb +43 -0
  133. data/lib/git/commands/stash/pop.rb +87 -0
  134. data/lib/git/commands/stash/push.rb +112 -0
  135. data/lib/git/commands/stash/show.rb +158 -0
  136. data/lib/git/commands/stash/store.rb +72 -0
  137. data/lib/git/commands/stash.rb +38 -0
  138. data/lib/git/commands/status.rb +174 -0
  139. data/lib/git/commands/symbolic_ref/delete.rb +72 -0
  140. data/lib/git/commands/symbolic_ref/read.rb +99 -0
  141. data/lib/git/commands/symbolic_ref/update.rb +79 -0
  142. data/lib/git/commands/symbolic_ref.rb +38 -0
  143. data/lib/git/commands/tag/create.rb +142 -0
  144. data/lib/git/commands/tag/delete.rb +57 -0
  145. data/lib/git/commands/tag/list.rb +146 -0
  146. data/lib/git/commands/tag/verify.rb +71 -0
  147. data/lib/git/commands/tag.rb +26 -0
  148. data/lib/git/commands/update_ref/batch.rb +145 -0
  149. data/lib/git/commands/update_ref/delete.rb +90 -0
  150. data/lib/git/commands/update_ref/update.rb +103 -0
  151. data/lib/git/commands/update_ref.rb +42 -0
  152. data/lib/git/commands/version.rb +60 -0
  153. data/lib/git/commands/worktree/add.rb +139 -0
  154. data/lib/git/commands/worktree/list.rb +64 -0
  155. data/lib/git/commands/worktree/lock.rb +58 -0
  156. data/lib/git/commands/worktree/management_base.rb +51 -0
  157. data/lib/git/commands/worktree/move.rb +66 -0
  158. data/lib/git/commands/worktree/prune.rb +67 -0
  159. data/lib/git/commands/worktree/remove.rb +63 -0
  160. data/lib/git/commands/worktree/repair.rb +71 -0
  161. data/lib/git/commands/worktree/unlock.rb +47 -0
  162. data/lib/git/commands/worktree.rb +43 -0
  163. data/lib/git/commands/write_tree.rb +68 -0
  164. data/lib/git/commands.rb +88 -0
  165. data/lib/git/config.rb +64 -1
  166. data/lib/git/config_entry_info.rb +106 -0
  167. data/lib/git/configuring.rb +795 -0
  168. data/lib/git/detached_head_info.rb +57 -0
  169. data/lib/git/diff.rb +295 -12
  170. data/lib/git/diff_file_numstat_info.rb +31 -0
  171. data/lib/git/diff_file_patch_info.rb +136 -0
  172. data/lib/git/diff_file_raw_info.rb +129 -0
  173. data/lib/git/diff_info.rb +162 -0
  174. data/lib/git/diff_path_status.rb +80 -19
  175. data/lib/git/diff_result.rb +34 -0
  176. data/lib/git/diff_stats.rb +66 -14
  177. data/lib/git/dirstat_info.rb +102 -0
  178. data/lib/git/encoding_utils.rb +57 -1
  179. data/lib/git/errors.rb +107 -26
  180. data/lib/git/escaped_path.rb +55 -3
  181. data/lib/git/execution_context/global.rb +31 -0
  182. data/lib/git/execution_context/repository.rb +151 -0
  183. data/lib/git/execution_context.rb +559 -0
  184. data/lib/git/factories.rb +1049 -0
  185. data/lib/git/file_ref.rb +77 -0
  186. data/lib/git/fsck_object.rb +17 -9
  187. data/lib/git/fsck_result.rb +27 -16
  188. data/lib/git/log.rb +172 -65
  189. data/lib/git/object.rb +323 -108
  190. data/lib/git/parsers/branch.rb +240 -0
  191. data/lib/git/parsers/cat_file.rb +111 -0
  192. data/lib/git/parsers/config_entry.rb +110 -0
  193. data/lib/git/parsers/diff.rb +792 -0
  194. data/lib/git/parsers/fsck.rb +144 -0
  195. data/lib/git/parsers/grep.rb +42 -0
  196. data/lib/git/parsers/ls_remote.rb +79 -0
  197. data/lib/git/parsers/ls_tree.rb +58 -0
  198. data/lib/git/parsers/remote.rb +162 -0
  199. data/lib/git/parsers/stash.rb +292 -0
  200. data/lib/git/parsers/status.rb +251 -0
  201. data/lib/git/parsers/tag.rb +341 -0
  202. data/lib/git/parsers/worktree.rb +185 -0
  203. data/lib/git/path_resolver.rb +274 -0
  204. data/lib/git/remote_info.rb +203 -0
  205. data/lib/git/repository/branching.rb +796 -0
  206. data/lib/git/repository/committing.rb +221 -0
  207. data/lib/git/repository/context_helpers.rb +454 -0
  208. data/lib/git/repository/diffing.rb +743 -0
  209. data/lib/git/repository/inspecting.rb +252 -0
  210. data/lib/git/repository/logging.rb +410 -0
  211. data/lib/git/repository/maintenance.rb +65 -0
  212. data/lib/git/repository/merging.rb +429 -0
  213. data/lib/git/repository/object_operations.rb +1334 -0
  214. data/lib/git/repository/remote_operations.rb +772 -0
  215. data/lib/git/repository/shared_private.rb +120 -0
  216. data/lib/git/repository/staging.rb +409 -0
  217. data/lib/git/repository/stashing.rb +619 -0
  218. data/lib/git/repository/status_operations.rb +196 -0
  219. data/lib/git/repository/worktree_operations.rb +252 -0
  220. data/lib/git/repository.rb +204 -1
  221. data/lib/git/stash_info.rb +102 -0
  222. data/lib/git/status_file_info.rb +258 -0
  223. data/lib/git/status_info.rb +189 -0
  224. data/lib/git/system_call_guard.rb +95 -0
  225. data/lib/git/tag_delete_failure.rb +34 -0
  226. data/lib/git/tag_delete_result.rb +66 -0
  227. data/lib/git/tag_info.rb +99 -0
  228. data/lib/git/url.rb +12 -5
  229. data/lib/git/version.rb +111 -2
  230. data/lib/git/version_constraint.rb +85 -0
  231. data/lib/git/worktree_info.rb +128 -0
  232. data/lib/git.rb +319 -332
  233. metadata +318 -74
  234. data/.commitlintrc.yml +0 -38
  235. data/.github/copilot-instructions.md +0 -2733
  236. data/.github/issue_template.md +0 -15
  237. data/.github/pull_request_template.md +0 -17
  238. data/.github/workflows/continuous_integration.yml +0 -120
  239. data/.github/workflows/enforce_conventional_commits.yml +0 -29
  240. data/.github/workflows/experimental_continuous_integration.yml +0 -59
  241. data/.github/workflows/release.yml +0 -53
  242. data/.gitignore +0 -15
  243. data/.husky/commit-msg +0 -1
  244. data/.release-please-manifest.json +0 -3
  245. data/.rubocop.yml +0 -55
  246. data/.rubocop_todo.yml +0 -12
  247. data/Gemfile +0 -5
  248. data/Rakefile +0 -18
  249. data/lib/git/args_builder.rb +0 -111
  250. data/lib/git/author.rb +0 -16
  251. data/lib/git/base.rb +0 -1140
  252. data/lib/git/branch.rb +0 -423
  253. data/lib/git/branches.rb +0 -68
  254. data/lib/git/command_line_result.rb +0 -92
  255. data/lib/git/index.rb +0 -6
  256. data/lib/git/lib.rb +0 -2333
  257. data/lib/git/path.rb +0 -38
  258. data/lib/git/remote.rb +0 -39
  259. data/lib/git/stash.rb +0 -26
  260. data/lib/git/stashes.rb +0 -56
  261. data/lib/git/status.rb +0 -159
  262. data/lib/git/working_directory.rb +0 -6
  263. data/lib/git/worktree.rb +0 -39
  264. data/lib/git/worktrees.rb +0 -47
  265. data/package.json +0 -10
  266. data/redesign/1_architecture_existing.md +0 -66
  267. data/redesign/2_architecture_redesign.md +0 -130
  268. data/redesign/3_architecture_implementation.md +0 -138
  269. data/redesign/index.md +0 -34
  270. data/release-please-config.json +0 -36
  271. data/tasks/gem_tasks.rake +0 -10
  272. data/tasks/rubocop.rake +0 -12
  273. data/tasks/test.rake +0 -13
  274. data/tasks/test_gem.rake +0 -12
  275. data/tasks/yard.rake +0 -23
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.6
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon and others
@@ -15,28 +15,42 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '5.0'
18
+ version: 7.0.9
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '5.0'
25
+ version: 7.0.9
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: addressable
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.8'
32
+ version: '2.9'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '2.8'
39
+ version: '2.9'
40
+ - !ruby/object:Gem::Dependency
41
+ name: logger
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.6'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.6'
40
54
  - !ruby/object:Gem::Dependency
41
55
  name: process_executer
42
56
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +93,34 @@ dependencies:
79
93
  - - "~>"
80
94
  - !ruby/object:Gem::Version
81
95
  version: '2.1'
96
+ - !ruby/object:Gem::Dependency
97
+ name: fuubar
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '2.5'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '2.5'
110
+ - !ruby/object:Gem::Dependency
111
+ name: irb
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '1.16'
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1.16'
82
124
  - !ruby/object:Gem::Dependency
83
125
  name: main_branch_shared_rubocop_config
84
126
  requirement: !ruby/object:Gem::Requirement
@@ -94,103 +136,117 @@ dependencies:
94
136
  - !ruby/object:Gem::Version
95
137
  version: '0.1'
96
138
  - !ruby/object:Gem::Dependency
97
- name: minitar
139
+ name: parallel_tests
98
140
  requirement: !ruby/object:Gem::Requirement
99
141
  requirements:
100
142
  - - "~>"
101
143
  - !ruby/object:Gem::Version
102
- version: '1.0'
144
+ version: '5.6'
103
145
  type: :development
104
146
  prerelease: false
105
147
  version_requirements: !ruby/object:Gem::Requirement
106
148
  requirements:
107
149
  - - "~>"
108
150
  - !ruby/object:Gem::Version
109
- version: '1.0'
151
+ version: '5.6'
110
152
  - !ruby/object:Gem::Dependency
111
- name: mocha
153
+ name: rake
112
154
  requirement: !ruby/object:Gem::Requirement
113
155
  requirements:
114
156
  - - "~>"
115
157
  - !ruby/object:Gem::Version
116
- version: '2.7'
158
+ version: '13.3'
117
159
  type: :development
118
160
  prerelease: false
119
161
  version_requirements: !ruby/object:Gem::Requirement
120
162
  requirements:
121
163
  - - "~>"
122
164
  - !ruby/object:Gem::Version
123
- version: '2.7'
165
+ version: '13.3'
124
166
  - !ruby/object:Gem::Dependency
125
- name: rake
167
+ name: redcarpet
126
168
  requirement: !ruby/object:Gem::Requirement
127
169
  requirements:
128
170
  - - "~>"
129
171
  - !ruby/object:Gem::Version
130
- version: '13.2'
172
+ version: '3.6'
131
173
  type: :development
132
174
  prerelease: false
133
175
  version_requirements: !ruby/object:Gem::Requirement
134
176
  requirements:
135
177
  - - "~>"
136
178
  - !ruby/object:Gem::Version
137
- version: '13.2'
179
+ version: '3.6'
180
+ - !ruby/object:Gem::Dependency
181
+ name: rspec
182
+ requirement: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: '3.13'
187
+ type: :development
188
+ prerelease: false
189
+ version_requirements: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '3.13'
138
194
  - !ruby/object:Gem::Dependency
139
195
  name: rubocop
140
196
  requirement: !ruby/object:Gem::Requirement
141
197
  requirements:
142
198
  - - "~>"
143
199
  - !ruby/object:Gem::Version
144
- version: '1.77'
200
+ version: '1.82'
145
201
  type: :development
146
202
  prerelease: false
147
203
  version_requirements: !ruby/object:Gem::Requirement
148
204
  requirements:
149
205
  - - "~>"
150
206
  - !ruby/object:Gem::Version
151
- version: '1.77'
207
+ version: '1.82'
152
208
  - !ruby/object:Gem::Dependency
153
- name: test-unit
209
+ name: simplecov
154
210
  requirement: !ruby/object:Gem::Requirement
155
211
  requirements:
156
212
  - - "~>"
157
213
  - !ruby/object:Gem::Version
158
- version: '3.6'
214
+ version: '1.0'
159
215
  type: :development
160
216
  prerelease: false
161
217
  version_requirements: !ruby/object:Gem::Requirement
162
218
  requirements:
163
219
  - - "~>"
164
220
  - !ruby/object:Gem::Version
165
- version: '3.6'
221
+ version: '1.0'
166
222
  - !ruby/object:Gem::Dependency
167
- name: irb
223
+ name: simplecov-lcov
168
224
  requirement: !ruby/object:Gem::Requirement
169
225
  requirements:
170
226
  - - "~>"
171
227
  - !ruby/object:Gem::Version
172
- version: '1.6'
228
+ version: '0.9'
173
229
  type: :development
174
230
  prerelease: false
175
231
  version_requirements: !ruby/object:Gem::Requirement
176
232
  requirements:
177
233
  - - "~>"
178
234
  - !ruby/object:Gem::Version
179
- version: '1.6'
235
+ version: '0.9'
180
236
  - !ruby/object:Gem::Dependency
181
- name: redcarpet
237
+ name: simplecov-rspec
182
238
  requirement: !ruby/object:Gem::Requirement
183
239
  requirements:
184
240
  - - "~>"
185
241
  - !ruby/object:Gem::Version
186
- version: '3.6'
242
+ version: '1.1'
187
243
  type: :development
188
244
  prerelease: false
189
245
  version_requirements: !ruby/object:Gem::Requirement
190
246
  requirements:
191
247
  - - "~>"
192
248
  - !ruby/object:Gem::Version
193
- version: '3.6'
249
+ version: '1.1'
194
250
  - !ruby/object:Gem::Dependency
195
251
  name: yard
196
252
  requirement: !ruby/object:Gem::Requirement
@@ -212,19 +268,39 @@ dependencies:
212
268
  - !ruby/object:Gem::Version
213
269
  version: 0.9.28
214
270
  - !ruby/object:Gem::Dependency
215
- name: yardstick
271
+ name: yard_example_test
216
272
  requirement: !ruby/object:Gem::Requirement
217
273
  requirements:
218
274
  - - "~>"
219
275
  - !ruby/object:Gem::Version
220
- version: '0.9'
276
+ version: '0.2'
277
+ - - ">="
278
+ - !ruby/object:Gem::Version
279
+ version: 0.2.1
221
280
  type: :development
222
281
  prerelease: false
223
282
  version_requirements: !ruby/object:Gem::Requirement
224
283
  requirements:
225
284
  - - "~>"
226
285
  - !ruby/object:Gem::Version
227
- version: '0.9'
286
+ version: '0.2'
287
+ - - ">="
288
+ - !ruby/object:Gem::Version
289
+ version: 0.2.1
290
+ - !ruby/object:Gem::Dependency
291
+ name: yard-lint
292
+ requirement: !ruby/object:Gem::Requirement
293
+ requirements:
294
+ - - "~>"
295
+ - !ruby/object:Gem::Version
296
+ version: '1.8'
297
+ type: :development
298
+ prerelease: false
299
+ version_requirements: !ruby/object:Gem::Requirement
300
+ requirements:
301
+ - - "~>"
302
+ - !ruby/object:Gem::Version
303
+ version: '1.8'
228
304
  description: |
229
305
  The git gem provides an API that can be used to
230
306
  create, read, and manipulate Git repositories by wrapping system calls to the git
@@ -236,82 +312,250 @@ executables: []
236
312
  extensions: []
237
313
  extra_rdoc_files: []
238
314
  files:
239
- - ".commitlintrc.yml"
240
- - ".github/copilot-instructions.md"
241
- - ".github/issue_template.md"
242
- - ".github/pull_request_template.md"
243
- - ".github/workflows/continuous_integration.yml"
244
- - ".github/workflows/enforce_conventional_commits.yml"
245
- - ".github/workflows/experimental_continuous_integration.yml"
246
- - ".github/workflows/release.yml"
247
- - ".gitignore"
248
- - ".husky/commit-msg"
249
- - ".release-please-manifest.json"
250
- - ".rubocop.yml"
251
- - ".rubocop_todo.yml"
252
315
  - ".yardopts"
253
316
  - AI_POLICY.md
254
317
  - CHANGELOG.md
255
318
  - CODE_OF_CONDUCT.md
256
319
  - CONTRIBUTING.md
257
320
  - GOVERNANCE.md
258
- - Gemfile
259
321
  - LICENSE
260
322
  - MAINTAINERS.md
261
323
  - README.md
262
- - Rakefile
324
+ - UPGRADING.md
263
325
  - git.gemspec
264
326
  - lib/git.rb
265
- - lib/git/args_builder.rb
266
- - lib/git/author.rb
267
- - lib/git/base.rb
268
- - lib/git/branch.rb
269
- - lib/git/branches.rb
327
+ - lib/git/author_info.rb
328
+ - lib/git/branch_delete_failure.rb
329
+ - lib/git/branch_delete_result.rb
330
+ - lib/git/branch_info.rb
270
331
  - lib/git/command_line.rb
271
- - lib/git/command_line_result.rb
332
+ - lib/git/command_line/base.rb
333
+ - lib/git/command_line/capturing.rb
334
+ - lib/git/command_line/result.rb
335
+ - lib/git/command_line/streaming.rb
336
+ - lib/git/commands.rb
337
+ - lib/git/commands/add.rb
338
+ - lib/git/commands/am.rb
339
+ - lib/git/commands/am/abort.rb
340
+ - lib/git/commands/am/apply.rb
341
+ - lib/git/commands/am/continue.rb
342
+ - lib/git/commands/am/quit.rb
343
+ - lib/git/commands/am/retry.rb
344
+ - lib/git/commands/am/show_current_patch.rb
345
+ - lib/git/commands/am/skip.rb
346
+ - lib/git/commands/apply.rb
347
+ - lib/git/commands/archive.rb
348
+ - lib/git/commands/archive/list_formats.rb
349
+ - lib/git/commands/arguments.rb
350
+ - lib/git/commands/base.rb
351
+ - lib/git/commands/branch.rb
352
+ - lib/git/commands/branch/copy.rb
353
+ - lib/git/commands/branch/create.rb
354
+ - lib/git/commands/branch/delete.rb
355
+ - lib/git/commands/branch/list.rb
356
+ - lib/git/commands/branch/move.rb
357
+ - lib/git/commands/branch/set_upstream.rb
358
+ - lib/git/commands/branch/show_current.rb
359
+ - lib/git/commands/branch/unset_upstream.rb
360
+ - lib/git/commands/cat_file.rb
361
+ - lib/git/commands/cat_file/batch.rb
362
+ - lib/git/commands/cat_file/filtered.rb
363
+ - lib/git/commands/cat_file/raw.rb
364
+ - lib/git/commands/checkout.rb
365
+ - lib/git/commands/checkout/branch.rb
366
+ - lib/git/commands/checkout/files.rb
367
+ - lib/git/commands/checkout_index.rb
368
+ - lib/git/commands/clean.rb
369
+ - lib/git/commands/clone.rb
370
+ - lib/git/commands/commit.rb
371
+ - lib/git/commands/commit_tree.rb
372
+ - lib/git/commands/config_option_syntax.rb
373
+ - lib/git/commands/config_option_syntax/add.rb
374
+ - lib/git/commands/config_option_syntax/get.rb
375
+ - lib/git/commands/config_option_syntax/get_all.rb
376
+ - lib/git/commands/config_option_syntax/get_color.rb
377
+ - lib/git/commands/config_option_syntax/get_color_bool.rb
378
+ - lib/git/commands/config_option_syntax/get_regexp.rb
379
+ - lib/git/commands/config_option_syntax/get_urlmatch.rb
380
+ - lib/git/commands/config_option_syntax/list.rb
381
+ - lib/git/commands/config_option_syntax/remove_section.rb
382
+ - lib/git/commands/config_option_syntax/rename_section.rb
383
+ - lib/git/commands/config_option_syntax/replace_all.rb
384
+ - lib/git/commands/config_option_syntax/set.rb
385
+ - lib/git/commands/config_option_syntax/unset.rb
386
+ - lib/git/commands/config_option_syntax/unset_all.rb
387
+ - lib/git/commands/describe.rb
388
+ - lib/git/commands/diff.rb
389
+ - lib/git/commands/diff_files.rb
390
+ - lib/git/commands/diff_index.rb
391
+ - lib/git/commands/fetch.rb
392
+ - lib/git/commands/fsck.rb
393
+ - lib/git/commands/gc.rb
394
+ - lib/git/commands/grep.rb
395
+ - lib/git/commands/init.rb
396
+ - lib/git/commands/log.rb
397
+ - lib/git/commands/ls_files.rb
398
+ - lib/git/commands/ls_remote.rb
399
+ - lib/git/commands/ls_tree.rb
400
+ - lib/git/commands/maintenance.rb
401
+ - lib/git/commands/maintenance/register.rb
402
+ - lib/git/commands/maintenance/run.rb
403
+ - lib/git/commands/maintenance/start.rb
404
+ - lib/git/commands/maintenance/stop.rb
405
+ - lib/git/commands/maintenance/unregister.rb
406
+ - lib/git/commands/merge.rb
407
+ - lib/git/commands/merge/abort.rb
408
+ - lib/git/commands/merge/continue.rb
409
+ - lib/git/commands/merge/quit.rb
410
+ - lib/git/commands/merge/start.rb
411
+ - lib/git/commands/merge_base.rb
412
+ - lib/git/commands/mv.rb
413
+ - lib/git/commands/name_rev.rb
414
+ - lib/git/commands/pull.rb
415
+ - lib/git/commands/push.rb
416
+ - lib/git/commands/read_tree.rb
417
+ - lib/git/commands/remote.rb
418
+ - lib/git/commands/remote/add.rb
419
+ - lib/git/commands/remote/get_url.rb
420
+ - lib/git/commands/remote/list.rb
421
+ - lib/git/commands/remote/prune.rb
422
+ - lib/git/commands/remote/remove.rb
423
+ - lib/git/commands/remote/rename.rb
424
+ - lib/git/commands/remote/set_branches.rb
425
+ - lib/git/commands/remote/set_head.rb
426
+ - lib/git/commands/remote/set_url.rb
427
+ - lib/git/commands/remote/set_url_add.rb
428
+ - lib/git/commands/remote/set_url_delete.rb
429
+ - lib/git/commands/remote/show.rb
430
+ - lib/git/commands/remote/update.rb
431
+ - lib/git/commands/repack.rb
432
+ - lib/git/commands/reset.rb
433
+ - lib/git/commands/rev_parse.rb
434
+ - lib/git/commands/revert.rb
435
+ - lib/git/commands/revert/abort.rb
436
+ - lib/git/commands/revert/continue.rb
437
+ - lib/git/commands/revert/quit.rb
438
+ - lib/git/commands/revert/skip.rb
439
+ - lib/git/commands/revert/start.rb
440
+ - lib/git/commands/rm.rb
441
+ - lib/git/commands/show.rb
442
+ - lib/git/commands/show_ref.rb
443
+ - lib/git/commands/show_ref/exclude_existing.rb
444
+ - lib/git/commands/show_ref/exists.rb
445
+ - lib/git/commands/show_ref/list.rb
446
+ - lib/git/commands/show_ref/verify.rb
447
+ - lib/git/commands/stash.rb
448
+ - lib/git/commands/stash/apply.rb
449
+ - lib/git/commands/stash/branch.rb
450
+ - lib/git/commands/stash/clear.rb
451
+ - lib/git/commands/stash/create.rb
452
+ - lib/git/commands/stash/drop.rb
453
+ - lib/git/commands/stash/list.rb
454
+ - lib/git/commands/stash/pop.rb
455
+ - lib/git/commands/stash/push.rb
456
+ - lib/git/commands/stash/show.rb
457
+ - lib/git/commands/stash/store.rb
458
+ - lib/git/commands/status.rb
459
+ - lib/git/commands/symbolic_ref.rb
460
+ - lib/git/commands/symbolic_ref/delete.rb
461
+ - lib/git/commands/symbolic_ref/read.rb
462
+ - lib/git/commands/symbolic_ref/update.rb
463
+ - lib/git/commands/tag.rb
464
+ - lib/git/commands/tag/create.rb
465
+ - lib/git/commands/tag/delete.rb
466
+ - lib/git/commands/tag/list.rb
467
+ - lib/git/commands/tag/verify.rb
468
+ - lib/git/commands/update_ref.rb
469
+ - lib/git/commands/update_ref/batch.rb
470
+ - lib/git/commands/update_ref/delete.rb
471
+ - lib/git/commands/update_ref/update.rb
472
+ - lib/git/commands/version.rb
473
+ - lib/git/commands/worktree.rb
474
+ - lib/git/commands/worktree/add.rb
475
+ - lib/git/commands/worktree/list.rb
476
+ - lib/git/commands/worktree/lock.rb
477
+ - lib/git/commands/worktree/management_base.rb
478
+ - lib/git/commands/worktree/move.rb
479
+ - lib/git/commands/worktree/prune.rb
480
+ - lib/git/commands/worktree/remove.rb
481
+ - lib/git/commands/worktree/repair.rb
482
+ - lib/git/commands/worktree/unlock.rb
483
+ - lib/git/commands/write_tree.rb
272
484
  - lib/git/config.rb
485
+ - lib/git/config_entry_info.rb
486
+ - lib/git/configuring.rb
487
+ - lib/git/detached_head_info.rb
273
488
  - lib/git/diff.rb
489
+ - lib/git/diff_file_numstat_info.rb
490
+ - lib/git/diff_file_patch_info.rb
491
+ - lib/git/diff_file_raw_info.rb
492
+ - lib/git/diff_info.rb
274
493
  - lib/git/diff_path_status.rb
494
+ - lib/git/diff_result.rb
275
495
  - lib/git/diff_stats.rb
496
+ - lib/git/dirstat_info.rb
276
497
  - lib/git/encoding_utils.rb
277
498
  - lib/git/errors.rb
278
499
  - lib/git/escaped_path.rb
500
+ - lib/git/execution_context.rb
501
+ - lib/git/execution_context/global.rb
502
+ - lib/git/execution_context/repository.rb
503
+ - lib/git/factories.rb
504
+ - lib/git/file_ref.rb
279
505
  - lib/git/fsck_object.rb
280
506
  - lib/git/fsck_result.rb
281
- - lib/git/index.rb
282
- - lib/git/lib.rb
283
507
  - lib/git/log.rb
284
508
  - lib/git/object.rb
285
- - lib/git/path.rb
286
- - lib/git/remote.rb
509
+ - lib/git/parsers/branch.rb
510
+ - lib/git/parsers/cat_file.rb
511
+ - lib/git/parsers/config_entry.rb
512
+ - lib/git/parsers/diff.rb
513
+ - lib/git/parsers/fsck.rb
514
+ - lib/git/parsers/grep.rb
515
+ - lib/git/parsers/ls_remote.rb
516
+ - lib/git/parsers/ls_tree.rb
517
+ - lib/git/parsers/remote.rb
518
+ - lib/git/parsers/stash.rb
519
+ - lib/git/parsers/status.rb
520
+ - lib/git/parsers/tag.rb
521
+ - lib/git/parsers/worktree.rb
522
+ - lib/git/path_resolver.rb
523
+ - lib/git/remote_info.rb
287
524
  - lib/git/repository.rb
288
- - lib/git/stash.rb
289
- - lib/git/stashes.rb
290
- - lib/git/status.rb
525
+ - lib/git/repository/branching.rb
526
+ - lib/git/repository/committing.rb
527
+ - lib/git/repository/context_helpers.rb
528
+ - lib/git/repository/diffing.rb
529
+ - lib/git/repository/inspecting.rb
530
+ - lib/git/repository/logging.rb
531
+ - lib/git/repository/maintenance.rb
532
+ - lib/git/repository/merging.rb
533
+ - lib/git/repository/object_operations.rb
534
+ - lib/git/repository/remote_operations.rb
535
+ - lib/git/repository/shared_private.rb
536
+ - lib/git/repository/staging.rb
537
+ - lib/git/repository/stashing.rb
538
+ - lib/git/repository/status_operations.rb
539
+ - lib/git/repository/worktree_operations.rb
540
+ - lib/git/stash_info.rb
541
+ - lib/git/status_file_info.rb
542
+ - lib/git/status_info.rb
543
+ - lib/git/system_call_guard.rb
544
+ - lib/git/tag_delete_failure.rb
545
+ - lib/git/tag_delete_result.rb
546
+ - lib/git/tag_info.rb
291
547
  - lib/git/url.rb
292
548
  - lib/git/version.rb
293
- - lib/git/working_directory.rb
294
- - lib/git/worktree.rb
295
- - lib/git/worktrees.rb
296
- - package.json
297
- - redesign/1_architecture_existing.md
298
- - redesign/2_architecture_redesign.md
299
- - redesign/3_architecture_implementation.md
300
- - redesign/index.md
301
- - release-please-config.json
302
- - tasks/gem_tasks.rake
303
- - tasks/rubocop.rake
304
- - tasks/test.rake
305
- - tasks/test_gem.rake
306
- - tasks/yard.rake
549
+ - lib/git/version_constraint.rb
550
+ - lib/git/worktree_info.rb
307
551
  homepage: http://github.com/ruby-git/ruby-git
308
552
  licenses:
309
553
  - MIT
310
554
  metadata:
311
555
  homepage_uri: http://github.com/ruby-git/ruby-git
312
556
  source_code_uri: http://github.com/ruby-git/ruby-git
313
- changelog_uri: https://rubydoc.info/gems/git/4.4.6/file/CHANGELOG.md
314
- documentation_uri: https://rubydoc.info/gems/git/4.4.6
557
+ changelog_uri: https://rubydoc.info/gems/git/6.0.0/file/CHANGELOG.md
558
+ documentation_uri: https://rubydoc.info/gems/git/6.0.0
315
559
  rubygems_mfa_required: 'true'
316
560
  rdoc_options: []
317
561
  require_paths:
@@ -320,14 +564,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
320
564
  requirements:
321
565
  - - ">="
322
566
  - !ruby/object:Gem::Version
323
- version: 3.2.0
567
+ version: 3.3.0
324
568
  required_rubygems_version: !ruby/object:Gem::Requirement
325
569
  requirements:
326
570
  - - ">="
327
571
  - !ruby/object:Gem::Version
328
572
  version: '0'
329
573
  requirements:
330
- - git 2.28.0 or greater
574
+ - git 2.43.0 or greater
331
575
  rubygems_version: 4.0.20
332
576
  specification_version: 4
333
577
  summary: An API to create, read, and manipulate Git repositories
data/.commitlintrc.yml DELETED
@@ -1,38 +0,0 @@
1
- ---
2
- extends: '@commitlint/config-conventional'
3
-
4
- rules:
5
- # See: https://commitlint.js.org/reference/rules.html
6
- #
7
- # Rules are made up by a name and a configuration array. The configuration
8
- # array contains:
9
- #
10
- # * Severity [0..2]: 0 disable rule, 1 warning if violated, or 2 error if
11
- # violated
12
- # * Applicability [always|never]: never inverts the rule
13
- # * Value: value to use for this rule (if applicable)
14
- #
15
- # Run `npx commitlint --print-config` to see the current setting for all
16
- # rules.
17
- #
18
- header-max-length: [2, always, 100] # Header can not exceed 100 chars
19
-
20
- type-case: [2, always, lower-case] # Type must be lower case
21
- type-empty: [2, never] # Type must not be empty
22
-
23
- # Supported conventional commit types
24
- type-enum: [2, always, [build, ci, chore, docs, feat, fix, perf, refactor, revert, style, test]]
25
-
26
- scope-case: [2, always, lower-case] # Scope must be lower case
27
-
28
- # Error if subject is one of these cases (encourages lower-case)
29
- subject-case: [2, never, [sentence-case, start-case, pascal-case, upper-case]]
30
- subject-empty: [2, never] # Subject must not be empty
31
- subject-full-stop: [2, never, "."] # Subject must not end with a period
32
-
33
- body-leading-blank: [2, always] # Body must have a blank line before it
34
- body-max-line-length: [2, always, 100] # Body lines can not exceed 100 chars
35
-
36
- footer-leading-blank: [2, always] # Footer must have a blank line before it
37
- footer-max-line-length: [2, always, 100] # Footer lines can not exceed 100 chars
38
-