use strvec_pushv() to add another strvec

Add and apply a semantic patch that simplifies the code by letting
strvec_pushv() append the items of a second strvec instead of pushing
them one by one.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
5 files changed
tree: 4bd35c77429ddd78fd53233d41e44b92e02d3e15
  1. .github/
  2. bin-wrappers/
  3. block-sha1/
  4. builtin/
  5. ci/
  6. compat/
  7. compiler-tricks/
  8. contrib/
  9. Documentation/
  10. ewah/
  11. git-gui/
  12. gitk-git/
  13. gitweb/
  14. mergetools/
  15. negotiator/
  16. odb/
  17. oss-fuzz/
  18. perl/
  19. po/
  20. refs/
  21. reftable/
  22. sha1/
  23. sha1dc/
  24. sha256/
  25. src/
  26. subprojects/
  27. t/
  28. templates/
  29. tools/
  30. trace2/
  31. xdiff/
  32. .cirrus.yml
  33. .clang-format
  34. .editorconfig
  35. .gitattributes
  36. .gitignore
  37. .gitlab-ci.yml
  38. .gitmodules
  39. .mailmap
  40. .tsan-suppressions
  41. abspath.c
  42. abspath.h
  43. aclocal.m4
  44. add-interactive.c
  45. add-interactive.h
  46. add-patch.c
  47. advice.c
  48. advice.h
  49. alias.c
  50. alias.h
  51. alloc.c
  52. alloc.h
  53. apply.c
  54. apply.h
  55. archive-tar.c
  56. archive-zip.c
  57. archive.c
  58. archive.h
  59. attr.c
  60. attr.h
  61. banned.h
  62. base85.c
  63. base85.h
  64. bisect.c
  65. bisect.h
  66. blame.c
  67. blame.h
  68. blob.c
  69. blob.h
  70. bloom.c
  71. bloom.h
  72. branch.c
  73. branch.h
  74. build.rs
  75. builtin.h
  76. bundle-uri.c
  77. bundle-uri.h
  78. bundle.c
  79. bundle.h
  80. cache-tree.c
  81. cache-tree.h
  82. Cargo.toml
  83. cbtree.c
  84. cbtree.h
  85. chdir-notify.c
  86. chdir-notify.h
  87. checkout.c
  88. checkout.h
  89. chunk-format.c
  90. chunk-format.h
  91. CODE_OF_CONDUCT.md
  92. color.c
  93. color.h
  94. column.c
  95. column.h
  96. combine-diff.c
  97. command-list.txt
  98. commit-graph.c
  99. commit-graph.h
  100. commit-reach.c
  101. commit-reach.h
  102. commit-slab-decl.h
  103. commit-slab-impl.h
  104. commit-slab.h
  105. commit.c
  106. commit.h
  107. common-exit.c
  108. common-init.c
  109. common-init.h
  110. common-main.c
  111. config.c
  112. config.h
  113. config.mak.dev
  114. config.mak.in
  115. config.mak.uname
  116. configure.ac
  117. connect.c
  118. connect.h
  119. connected.c
  120. connected.h
  121. convert.c
  122. convert.h
  123. copy.c
  124. copy.h
  125. COPYING
  126. credential.c
  127. credential.h
  128. csum-file.c
  129. csum-file.h
  130. ctype.c
  131. daemon.c
  132. date.c
  133. date.h
  134. decorate.c
  135. decorate.h
  136. delta-islands.c
  137. delta-islands.h
  138. delta.h
  139. diagnose.c
  140. diagnose.h
  141. diff-delta.c
  142. diff-lib.c
  143. diff-merges.c
  144. diff-merges.h
  145. diff-no-index.c
  146. diff.c
  147. diff.h
  148. diffcore-break.c
  149. diffcore-delta.c
  150. diffcore-order.c
  151. diffcore-pickaxe.c
  152. diffcore-rename.c
  153. diffcore-rotate.c
  154. diffcore.h
  155. dir-iterator.c
  156. dir-iterator.h
  157. dir.c
  158. dir.h
  159. editor.c
  160. editor.h
  161. entry.c
  162. entry.h
  163. environment.c
  164. environment.h
  165. exec-cmd.c
  166. exec-cmd.h
  167. fetch-negotiator.c
  168. fetch-negotiator.h
  169. fetch-pack.c
  170. fetch-pack.h
  171. fmt-merge-msg.c
  172. fmt-merge-msg.h
  173. for-each-ref.h
  174. fsck.c
  175. fsck.h
  176. fsmonitor--daemon.h
  177. fsmonitor-ipc.c
  178. fsmonitor-ipc.h
  179. fsmonitor-ll.h
  180. fsmonitor-path-utils.h
  181. fsmonitor-settings.c
  182. fsmonitor-settings.h
  183. fsmonitor.c
  184. fsmonitor.h
  185. gettext.c
  186. gettext.h
  187. git-archimport.perl
  188. GIT-BUILD-OPTIONS.in
  189. git-compat-util.h
  190. git-curl-compat.h
  191. git-cvsexportcommit.perl
  192. git-cvsimport.perl
  193. git-cvsserver.perl
  194. git-difftool--helper.sh
  195. git-filter-branch.sh
  196. git-instaweb.sh
  197. git-merge-octopus.sh
  198. git-merge-one-file.sh
  199. git-merge-resolve.sh
  200. git-mergetool--lib.sh
  201. git-mergetool.sh
  202. git-p4.py
  203. git-quiltimport.sh
  204. git-request-pull.sh
  205. git-send-email.perl
  206. git-sh-i18n.sh
  207. git-sh-setup.sh
  208. git-submodule.sh
  209. git-svn.perl
  210. GIT-VERSION-FILE.in
  211. GIT-VERSION-GEN
  212. git-web--browse.sh
  213. git-zlib.c
  214. git-zlib.h
  215. git.c
  216. git.rc.in
  217. gpg-interface.c
  218. gpg-interface.h
  219. graph.c
  220. graph.h
  221. grep.c
  222. grep.h
  223. hash-lookup.c
  224. hash-lookup.h
  225. hash.c
  226. hash.h
  227. hashmap.c
  228. hashmap.h
  229. help.c
  230. help.h
  231. hex-ll.c
  232. hex-ll.h
  233. hex.c
  234. hex.h
  235. hook.c
  236. hook.h
  237. http-backend.c
  238. http-fetch.c
  239. http-push.c
  240. http-walker.c
  241. http.c
  242. http.h
  243. ident.c
  244. ident.h
  245. imap-send.c
  246. INSTALL
  247. iterator.h
  248. json-writer.c
  249. json-writer.h
  250. khash.h
  251. kwset.c
  252. kwset.h
  253. levenshtein.c
  254. levenshtein.h
  255. LGPL-2.1
  256. line-log.c
  257. line-log.h
  258. line-range.c
  259. line-range.h
  260. linear-assignment.c
  261. linear-assignment.h
  262. list-objects-filter-options.c
  263. list-objects-filter-options.h
  264. list-objects-filter.c
  265. list-objects-filter.h
  266. list-objects.c
  267. list-objects.h
  268. list.h
  269. lockfile.c
  270. lockfile.h
  271. log-tree.c
  272. log-tree.h
  273. loose.c
  274. loose.h
  275. ls-refs.c
  276. ls-refs.h
  277. mailinfo.c
  278. mailinfo.h
  279. mailmap.c
  280. mailmap.h
  281. Makefile
  282. match-trees.c
  283. match-trees.h
  284. mem-pool.c
  285. mem-pool.h
  286. merge-blobs.c
  287. merge-blobs.h
  288. merge-ll.c
  289. merge-ll.h
  290. merge-ort-wrappers.c
  291. merge-ort-wrappers.h
  292. merge-ort.c
  293. merge-ort.h
  294. merge.c
  295. merge.h
  296. mergesort.h
  297. meson.build
  298. meson_options.txt
  299. midx-write.c
  300. midx.c
  301. midx.h
  302. name-hash.c
  303. name-hash.h
  304. notes-cache.c
  305. notes-cache.h
  306. notes-merge.c
  307. notes-merge.h
  308. notes-utils.c
  309. notes-utils.h
  310. notes.c
  311. notes.h
  312. object-file-convert.c
  313. object-file-convert.h
  314. object-file.c
  315. object-file.h
  316. object-name.c
  317. object-name.h
  318. object.c
  319. object.h
  320. odb.c
  321. odb.h
  322. oid-array.c
  323. oid-array.h
  324. oidmap.c
  325. oidmap.h
  326. oidset.c
  327. oidset.h
  328. oidtree.c
  329. oidtree.h
  330. pack-bitmap-write.c
  331. pack-bitmap.c
  332. pack-bitmap.h
  333. pack-check.c
  334. pack-mtimes.c
  335. pack-mtimes.h
  336. pack-objects.c
  337. pack-objects.h
  338. pack-refs.c
  339. pack-refs.h
  340. pack-revindex.c
  341. pack-revindex.h
  342. pack-write.c
  343. pack.h
  344. packfile.c
  345. packfile.h
  346. pager.c
  347. pager.h
  348. parallel-checkout.c
  349. parallel-checkout.h
  350. parse-options-cb.c
  351. parse-options.c
  352. parse-options.h
  353. parse.c
  354. parse.h
  355. patch-delta.c
  356. patch-ids.c
  357. patch-ids.h
  358. path-walk.c
  359. path-walk.h
  360. path.c
  361. path.h
  362. pathspec.c
  363. pathspec.h
  364. pkt-line.c
  365. pkt-line.h
  366. preload-index.c
  367. preload-index.h
  368. pretty.c
  369. pretty.h
  370. prio-queue.c
  371. prio-queue.h
  372. progress.c
  373. progress.h
  374. promisor-remote.c
  375. promisor-remote.h
  376. prompt.c
  377. prompt.h
  378. protocol-caps.c
  379. protocol-caps.h
  380. protocol.c
  381. protocol.h
  382. prune-packed.c
  383. prune-packed.h
  384. pseudo-merge.c
  385. pseudo-merge.h
  386. quote.c
  387. quote.h
  388. range-diff.c
  389. range-diff.h
  390. reachable.c
  391. reachable.h
  392. read-cache-ll.h
  393. read-cache.c
  394. read-cache.h
  395. README.md
  396. rebase-interactive.c
  397. rebase-interactive.h
  398. rebase.c
  399. rebase.h
  400. ref-filter.c
  401. ref-filter.h
  402. reflog-walk.c
  403. reflog-walk.h
  404. reflog.c
  405. reflog.h
  406. refs.c
  407. refs.h
  408. refspec.c
  409. refspec.h
  410. remote-curl.c
  411. remote.c
  412. remote.h
  413. repack-cruft.c
  414. repack-filtered.c
  415. repack-geometry.c
  416. repack-midx.c
  417. repack-promisor.c
  418. repack.c
  419. repack.h
  420. replace-object.c
  421. replace-object.h
  422. replay.c
  423. replay.h
  424. repo-settings.c
  425. repo-settings.h
  426. repository.c
  427. repository.h
  428. rerere.c
  429. rerere.h
  430. reset.c
  431. reset.h
  432. resolve-undo.c
  433. resolve-undo.h
  434. revision.c
  435. revision.h
  436. run-command.c
  437. run-command.h
  438. sane-ctype.h
  439. scalar.c
  440. SECURITY.md
  441. send-pack.c
  442. send-pack.h
  443. sequencer.c
  444. sequencer.h
  445. serve.c
  446. serve.h
  447. server-info.c
  448. server-info.h
  449. setup.c
  450. setup.h
  451. sh-i18n--envsubst.c
  452. sha1dc_git.c
  453. sha1dc_git.h
  454. shallow.c
  455. shallow.h
  456. shared.mak
  457. shell.c
  458. shortlog.h
  459. sideband.c
  460. sideband.h
  461. sigchain.c
  462. sigchain.h
  463. simple-ipc.h
  464. sparse-index.c
  465. sparse-index.h
  466. split-index.c
  467. split-index.h
  468. stable-qsort.c
  469. statinfo.c
  470. statinfo.h
  471. strbuf.c
  472. strbuf.h
  473. string-list.c
  474. string-list.h
  475. strmap.c
  476. strmap.h
  477. strvec.c
  478. strvec.h
  479. sub-process.c
  480. sub-process.h
  481. submodule-config.c
  482. submodule-config.h
  483. submodule.c
  484. submodule.h
  485. symlinks.c
  486. symlinks.h
  487. tag.c
  488. tag.h
  489. tar.h
  490. tempfile.c
  491. tempfile.h
  492. thread-utils.c
  493. thread-utils.h
  494. tmp-objdir.c
  495. tmp-objdir.h
  496. trace.c
  497. trace.h
  498. trace2.c
  499. trace2.h
  500. trailer.c
  501. trailer.h
  502. transport-helper.c
  503. transport-internal.h
  504. transport.c
  505. transport.h
  506. tree-diff.c
  507. tree-walk.c
  508. tree-walk.h
  509. tree.c
  510. tree.h
  511. unicode-width.h
  512. unimplemented.sh
  513. unix-socket.c
  514. unix-socket.h
  515. unix-stream-server.c
  516. unix-stream-server.h
  517. unpack-trees.c
  518. unpack-trees.h
  519. upload-pack.c
  520. upload-pack.h
  521. url.c
  522. url.h
  523. urlmatch.c
  524. urlmatch.h
  525. usage.c
  526. userdiff.c
  527. userdiff.h
  528. utf8.c
  529. utf8.h
  530. varint.c
  531. varint.h
  532. version-def.h.in
  533. version.c
  534. version.h
  535. versioncmp.c
  536. versioncmp.h
  537. walker.c
  538. walker.h
  539. wildmatch.c
  540. wildmatch.h
  541. worktree.c
  542. worktree.h
  543. wrapper.c
  544. wrapper.h
  545. write-or-die.c
  546. write-or-die.h
  547. ws.c
  548. ws.h
  549. wt-status.c
  550. wt-status.h
  551. xdiff-interface.c
  552. xdiff-interface.h
README.md

Build status

Git - fast, scalable, distributed revision control system

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals.

Git is an Open Source project covered by the GNU General Public License version 2 (some parts of it are under different licenses, compatible with the GPLv2). It was originally written by Linus Torvalds with help of a group of hackers around the net.

Please read the file INSTALL for installation instructions.

Many Git online resources are accessible from https://git-scm.com/ including full documentation and Git related tools.

See Documentation/gittutorial.adoc to get started, then see Documentation/giteveryday.adoc for a useful minimum set of commands, and Documentation/git-<commandname>.adoc for documentation of each command. If git has been correctly installed, then the tutorial can also be read with man gittutorial or git help tutorial, and the documentation of each command with man git-<commandname> or git help <commandname>.

CVS users may also want to read Documentation/gitcvs-migration.adoc (man gitcvs-migration or git help cvs-migration if git is installed).

The user discussion and development of Git take place on the Git mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to git@vger.kernel.org (read Documentation/SubmittingPatches for instructions on patch submission and Documentation/CodingGuidelines).

Those wishing to help with error message, usage and informational message string translations (localization l10) should see po/README.md (a po file is a Portable Object file that holds the translations).

To subscribe to the list, send an email to git+subscribe@vger.kernel.org (see https://subspace.kernel.org/subscribing.html for details). The mailing list archives are available at https://lore.kernel.org/git/, https://marc.info/?l=git and other archival sites.

Issues which are security relevant should be disclosed privately to the Git Security mailing list git-security@googlegroups.com.

The maintainer frequently sends the “What's cooking” reports that list the current status of various development topics to the mailing list. The discussion following them give a good reference for project status, development direction and remaining tasks.

The name “git” was given by Linus Torvalds when he wrote the very first version. He described the tool as “the stupid content tracker” and the name as (depending on your mood):

  • random three-letter combination that is pronounceable, and not actually used by any common UNIX command. The fact that it is a mispronunciation of “get” may or may not be relevant.
  • stupid. contemptible and despicable. simple. Take your pick from the dictionary of slang.
  • “global information tracker”: you're in a good mood, and it actually works for you. Angels sing, and a light suddenly fills the room.
  • “goddamn idiotic truckload of sh*t”: when it breaks