Merge branch 'oa/checkout-wo-the-repository' into seen

checkout.c:unique_tracking_name() was the only function that still
assumed it works on the_repository; the function has been updated
to take an instance of 'struct repository' to work on an arbitrary
repository.

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

GitHub build status GitLab 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