Merge branch 'ab/fsck-api-cleanup'

Fsck API clean-up.

* ab/fsck-api-cleanup:
  fetch-pack: use new fsck API to printing dangling submodules
  fetch-pack: use file-scope static struct for fsck_options
  fetch-pack: don't needlessly copy fsck_options
  fsck.c: move gitmodules_{found,done} into fsck_options
  fsck.c: add an fsck_set_msg_type() API that takes enums
  fsck.c: pass along the fsck_msg_id in the fsck_error callback
  fsck.[ch]: move FOREACH_FSCK_MSG_ID & fsck_msg_id from *.c to *.h
  fsck.c: give "FOREACH_MSG_ID" a more specific name
  fsck.c: undefine temporary STR macro after use
  fsck.c: call parse_msg_type() early in fsck_set_msg_type()
  fsck.h: re-order and re-assign "enum fsck_msg_type"
  fsck.h: move FSCK_{FATAL,INFO,ERROR,WARN,IGNORE} into an enum
  fsck.c: refactor fsck_msg_type() to limit scope of "int msg_type"
  fsck.c: rename remaining fsck_msg_id "id" to "msg_id"
  fsck.c: remove (mostly) redundant append_msg_id() function
  fsck.c: rename variables in fsck_set_msg_type() for less confusion
  fsck.h: use "enum object_type" instead of "int"
  fsck.h: use designed initializers for FSCK_OPTIONS_{DEFAULT,STRICT}
  fsck.c: refactor and rename common config callback
tree: 878996b3a79193bbfd50eee165ed0613cf150485
  1. .cirrus.yml
  2. .clang-format
  3. .editorconfig
  4. .gitattributes
  5. .github/
  6. .gitignore
  7. .gitmodules
  8. .mailmap
  9. .travis.yml
  10. .tsan-suppressions
  11. CODE_OF_CONDUCT.md
  12. COPYING
  13. Documentation/
  14. GIT-VERSION-GEN
  15. INSTALL
  16. LGPL-2.1
  17. Makefile
  18. README.md
  19. SECURITY.md
  20. abspath.c
  21. aclocal.m4
  22. add-interactive.c
  23. add-interactive.h
  24. add-patch.c
  25. advice.c
  26. advice.h
  27. alias.c
  28. alias.h
  29. alloc.c
  30. alloc.h
  31. apply.c
  32. apply.h
  33. archive-tar.c
  34. archive-zip.c
  35. archive.c
  36. archive.h
  37. attr.c
  38. attr.h
  39. banned.h
  40. base85.c
  41. bisect.c
  42. bisect.h
  43. blame.c
  44. blame.h
  45. blob.c
  46. blob.h
  47. block-sha1/
  48. bloom.c
  49. bloom.h
  50. branch.c
  51. branch.h
  52. builtin.h
  53. builtin/
  54. bulk-checkin.c
  55. bulk-checkin.h
  56. bundle.c
  57. bundle.h
  58. cache-tree.c
  59. cache-tree.h
  60. cache.h
  61. chdir-notify.c
  62. chdir-notify.h
  63. check-builtins.sh
  64. check_bindir
  65. checkout.c
  66. checkout.h
  67. chunk-format.c
  68. chunk-format.h
  69. ci/
  70. color.c
  71. color.h
  72. column.c
  73. column.h
  74. combine-diff.c
  75. command-list.txt
  76. commit-graph.c
  77. commit-graph.h
  78. commit-reach.c
  79. commit-reach.h
  80. commit-slab-decl.h
  81. commit-slab-impl.h
  82. commit-slab.h
  83. commit.c
  84. commit.h
  85. common-main.c
  86. compat/
  87. config.c
  88. config.h
  89. config.mak.dev
  90. config.mak.in
  91. config.mak.uname
  92. configure.ac
  93. connect.c
  94. connect.h
  95. connected.c
  96. connected.h
  97. contrib/
  98. convert.c
  99. convert.h
  100. copy.c
  101. credential.c
  102. credential.h
  103. csum-file.c
  104. csum-file.h
  105. ctype.c
  106. daemon.c
  107. date.c
  108. decorate.c
  109. decorate.h
  110. delta-islands.c
  111. delta-islands.h
  112. delta.h
  113. detect-compiler
  114. diff-delta.c
  115. diff-lib.c
  116. diff-merges.c
  117. diff-merges.h
  118. diff-no-index.c
  119. diff.c
  120. diff.h
  121. diffcore-break.c
  122. diffcore-delta.c
  123. diffcore-order.c
  124. diffcore-pickaxe.c
  125. diffcore-rename.c
  126. diffcore-rotate.c
  127. diffcore.h
  128. dir-iterator.c
  129. dir-iterator.h
  130. dir.c
  131. dir.h
  132. editor.c
  133. entry.c
  134. entry.h
  135. environment.c
  136. environment.h
  137. ewah/
  138. exec-cmd.c
  139. exec-cmd.h
  140. fetch-negotiator.c
  141. fetch-negotiator.h
  142. fetch-pack.c
  143. fetch-pack.h
  144. fmt-merge-msg.c
  145. fmt-merge-msg.h
  146. fsck.c
  147. fsck.h
  148. fsmonitor.c
  149. fsmonitor.h
  150. fuzz-commit-graph.c
  151. fuzz-pack-headers.c
  152. fuzz-pack-idx.c
  153. generate-cmdlist.sh
  154. generate-configlist.sh
  155. gettext.c
  156. gettext.h
  157. git-add--interactive.perl
  158. git-archimport.perl
  159. git-bisect.sh
  160. git-compat-util.h
  161. git-cvsexportcommit.perl
  162. git-cvsimport.perl
  163. git-cvsserver.perl
  164. git-difftool--helper.sh
  165. git-filter-branch.sh
  166. git-gui/
  167. git-instaweb.sh
  168. git-merge-octopus.sh
  169. git-merge-one-file.sh
  170. git-merge-resolve.sh
  171. git-mergetool--lib.sh
  172. git-mergetool.sh
  173. git-p4.py
  174. git-quiltimport.sh
  175. git-rebase--preserve-merges.sh
  176. git-request-pull.sh
  177. git-send-email.perl
  178. git-sh-i18n.sh
  179. git-sh-setup.sh
  180. git-submodule.sh
  181. git-svn.perl
  182. git-web--browse.sh
  183. git.c
  184. git.rc
  185. gitk-git/
  186. gitweb/
  187. gpg-interface.c
  188. gpg-interface.h
  189. graph.c
  190. graph.h
  191. grep.c
  192. grep.h
  193. hash-lookup.c
  194. hash-lookup.h
  195. hash.h
  196. hashmap.c
  197. hashmap.h
  198. help.c
  199. help.h
  200. hex.c
  201. http-backend.c
  202. http-fetch.c
  203. http-push.c
  204. http-walker.c
  205. http.c
  206. http.h
  207. ident.c
  208. imap-send.c
  209. iterator.h
  210. json-writer.c
  211. json-writer.h
  212. khash.h
  213. kwset.c
  214. kwset.h
  215. levenshtein.c
  216. levenshtein.h
  217. line-log.c
  218. line-log.h
  219. line-range.c
  220. line-range.h
  221. linear-assignment.c
  222. linear-assignment.h
  223. list-objects-filter-options.c
  224. list-objects-filter-options.h
  225. list-objects-filter.c
  226. list-objects-filter.h
  227. list-objects.c
  228. list-objects.h
  229. list.h
  230. ll-merge.c
  231. ll-merge.h
  232. lockfile.c
  233. lockfile.h
  234. log-tree.c
  235. log-tree.h
  236. ls-refs.c
  237. ls-refs.h
  238. mailinfo.c
  239. mailinfo.h
  240. mailmap.c
  241. mailmap.h
  242. match-trees.c
  243. mem-pool.c
  244. mem-pool.h
  245. merge-blobs.c
  246. merge-blobs.h
  247. merge-ort-wrappers.c
  248. merge-ort-wrappers.h
  249. merge-ort.c
  250. merge-ort.h
  251. merge-recursive.c
  252. merge-recursive.h
  253. merge.c
  254. mergesort.c
  255. mergesort.h
  256. mergetools/
  257. midx.c
  258. midx.h
  259. name-hash.c
  260. negotiator/
  261. notes-cache.c
  262. notes-cache.h
  263. notes-merge.c
  264. notes-merge.h
  265. notes-utils.c
  266. notes-utils.h
  267. notes.c
  268. notes.h
  269. object-file.c
  270. object-name.c
  271. object-store.h
  272. object.c
  273. object.h
  274. oid-array.c
  275. oid-array.h
  276. oidmap.c
  277. oidmap.h
  278. oidset.c
  279. oidset.h
  280. pack-bitmap-write.c
  281. pack-bitmap.c
  282. pack-bitmap.h
  283. pack-check.c
  284. pack-objects.c
  285. pack-objects.h
  286. pack-revindex.c
  287. pack-revindex.h
  288. pack-write.c
  289. pack.h
  290. packfile.c
  291. packfile.h
  292. pager.c
  293. parse-options-cb.c
  294. parse-options.c
  295. parse-options.h
  296. patch-delta.c
  297. patch-ids.c
  298. patch-ids.h
  299. path.c
  300. path.h
  301. pathspec.c
  302. pathspec.h
  303. perl/
  304. pkt-line.c
  305. pkt-line.h
  306. po/
  307. ppc/
  308. preload-index.c
  309. pretty.c
  310. pretty.h
  311. prio-queue.c
  312. prio-queue.h
  313. progress.c
  314. progress.h
  315. promisor-remote.c
  316. promisor-remote.h
  317. prompt.c
  318. prompt.h
  319. protocol.c
  320. protocol.h
  321. prune-packed.c
  322. prune-packed.h
  323. quote.c
  324. quote.h
  325. range-diff.c
  326. range-diff.h
  327. reachable.c
  328. reachable.h
  329. read-cache.c
  330. rebase-interactive.c
  331. rebase-interactive.h
  332. rebase.c
  333. rebase.h
  334. ref-filter.c
  335. ref-filter.h
  336. reflog-walk.c
  337. reflog-walk.h
  338. refs.c
  339. refs.h
  340. refs/
  341. refspec.c
  342. refspec.h
  343. remote-curl.c
  344. remote.c
  345. remote.h
  346. replace-object.c
  347. replace-object.h
  348. repo-settings.c
  349. repository.c
  350. repository.h
  351. rerere.c
  352. rerere.h
  353. reset.c
  354. reset.h
  355. resolve-undo.c
  356. resolve-undo.h
  357. revision.c
  358. revision.h
  359. run-command.c
  360. run-command.h
  361. send-pack.c
  362. send-pack.h
  363. sequencer.c
  364. sequencer.h
  365. serve.c
  366. serve.h
  367. server-info.c
  368. setup.c
  369. sh-i18n--envsubst.c
  370. sha1dc/
  371. sha1dc_git.c
  372. sha1dc_git.h
  373. sha256/
  374. shallow.c
  375. shallow.h
  376. shell.c
  377. shortlog.h
  378. sideband.c
  379. sideband.h
  380. sigchain.c
  381. sigchain.h
  382. simple-ipc.h
  383. split-index.c
  384. split-index.h
  385. stable-qsort.c
  386. strbuf.c
  387. strbuf.h
  388. streaming.c
  389. streaming.h
  390. string-list.c
  391. string-list.h
  392. strmap.c
  393. strmap.h
  394. strvec.c
  395. strvec.h
  396. sub-process.c
  397. sub-process.h
  398. submodule-config.c
  399. submodule-config.h
  400. submodule.c
  401. submodule.h
  402. symlinks.c
  403. t/
  404. tag.c
  405. tag.h
  406. tar.h
  407. tempfile.c
  408. tempfile.h
  409. templates/
  410. thread-utils.c
  411. thread-utils.h
  412. tmp-objdir.c
  413. tmp-objdir.h
  414. trace.c
  415. trace.h
  416. trace2.c
  417. trace2.h
  418. trace2/
  419. trailer.c
  420. trailer.h
  421. transport-helper.c
  422. transport-internal.h
  423. transport.c
  424. transport.h
  425. tree-diff.c
  426. tree-walk.c
  427. tree-walk.h
  428. tree.c
  429. tree.h
  430. unicode-width.h
  431. unimplemented.sh
  432. unix-socket.c
  433. unix-socket.h
  434. unix-stream-server.c
  435. unix-stream-server.h
  436. unpack-trees.c
  437. unpack-trees.h
  438. upload-pack.c
  439. upload-pack.h
  440. url.c
  441. url.h
  442. urlmatch.c
  443. urlmatch.h
  444. usage.c
  445. userdiff.c
  446. userdiff.h
  447. utf8.c
  448. utf8.h
  449. varint.c
  450. varint.h
  451. version.c
  452. version.h
  453. versioncmp.c
  454. walker.c
  455. walker.h
  456. wildmatch.c
  457. wildmatch.h
  458. worktree.c
  459. worktree.h
  460. wrap-for-bin.sh
  461. wrapper.c
  462. write-or-die.c
  463. ws.c
  464. wt-status.c
  465. wt-status.h
  466. xdiff-interface.c
  467. xdiff-interface.h
  468. xdiff/
  469. zlib.c
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.txt to get started, then see Documentation/giteveryday.txt for a useful minimum set of commands, and Documentation/git-<commandname>.txt 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.txt (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). To subscribe to the list, send an email with just “subscribe git” in the body to majordomo@vger.kernel.org. The mailing list archives are available at https://lore.kernel.org/git/, http://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