Merge branch 'nd/no-the-index'

The more library-ish parts of the codebase learned to work on the
in-core index-state instance that is passed in by their callers,
instead of always working on the singleton "the_index" instance.

* nd/no-the-index: (24 commits)
  blame.c: remove implicit dependency on the_index
  apply.c: remove implicit dependency on the_index
  apply.c: make init_apply_state() take a struct repository
  apply.c: pass struct apply_state to more functions
  resolve-undo.c: use the right index instead of the_index
  archive-*.c: use the right repository
  archive.c: avoid access to the_index
  grep: use the right index instead of the_index
  attr: remove index from git_attr_set_direction()
  entry.c: use the right index instead of the_index
  submodule.c: use the right index instead of the_index
  pathspec.c: use the right index instead of the_index
  unpack-trees: avoid the_index in verify_absent()
  unpack-trees: convert clear_ce_flags* to avoid the_index
  unpack-trees: don't shadow global var the_index
  unpack-trees: add a note about path invalidation
  unpack-trees: remove 'extern' on function declaration
  ls-files: correct index argument to get_convert_attr_ascii()
  preload-index.c: use the right index instead of the_index
  dir.c: remove an implicit dependency on the_index in pathspec code
  ...
tree: a2f09658870423d62e82d0bab113bde15375fd35
  1. .github/
  2. block-sha1/
  3. builtin/
  4. ci/
  5. compat/
  6. contrib/
  7. Documentation/
  8. ewah/
  9. git-gui/
  10. gitk-git/
  11. gitweb/
  12. mergetools/
  13. negotiator/
  14. perl/
  15. po/
  16. ppc/
  17. refs/
  18. sha1dc/
  19. t/
  20. templates/
  21. vcs-svn/
  22. xdiff/
  23. .clang-format
  24. .gitattributes
  25. .gitignore
  26. .gitmodules
  27. .mailmap
  28. .travis.yml
  29. .tsan-suppressions
  30. abspath.c
  31. aclocal.m4
  32. advice.c
  33. advice.h
  34. alias.c
  35. alias.h
  36. alloc.c
  37. alloc.h
  38. apply.c
  39. apply.h
  40. archive-tar.c
  41. archive-zip.c
  42. archive.c
  43. archive.h
  44. argv-array.c
  45. argv-array.h
  46. attr.c
  47. attr.h
  48. banned.h
  49. base85.c
  50. bisect.c
  51. bisect.h
  52. blame.c
  53. blame.h
  54. blob.c
  55. blob.h
  56. branch.c
  57. branch.h
  58. builtin.h
  59. bulk-checkin.c
  60. bulk-checkin.h
  61. bundle.c
  62. bundle.h
  63. cache-tree.c
  64. cache-tree.h
  65. cache.h
  66. chdir-notify.c
  67. chdir-notify.h
  68. check-builtins.sh
  69. check-racy.c
  70. check_bindir
  71. checkout.c
  72. checkout.h
  73. color.c
  74. color.h
  75. column.c
  76. column.h
  77. combine-diff.c
  78. command-list.txt
  79. commit-graph.c
  80. commit-graph.h
  81. commit-slab-decl.h
  82. commit-slab-impl.h
  83. commit-slab.h
  84. commit.c
  85. commit.h
  86. common-main.c
  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. convert.c
  98. convert.h
  99. copy.c
  100. COPYING
  101. credential-cache--daemon.c
  102. credential-cache.c
  103. credential-store.c
  104. credential.c
  105. credential.h
  106. csum-file.c
  107. csum-file.h
  108. ctype.c
  109. daemon.c
  110. date.c
  111. decorate.c
  112. decorate.h
  113. delta.h
  114. detect-compiler
  115. diff-delta.c
  116. diff-lib.c
  117. diff-no-index.c
  118. diff.c
  119. diff.h
  120. diffcore-break.c
  121. diffcore-delta.c
  122. diffcore-order.c
  123. diffcore-pickaxe.c
  124. diffcore-rename.c
  125. diffcore.h
  126. dir-iterator.c
  127. dir-iterator.h
  128. dir.c
  129. dir.h
  130. editor.c
  131. entry.c
  132. environment.c
  133. exec-cmd.c
  134. exec-cmd.h
  135. fast-import.c
  136. fetch-negotiator.c
  137. fetch-negotiator.h
  138. fetch-object.c
  139. fetch-object.h
  140. fetch-pack.c
  141. fetch-pack.h
  142. fmt-merge-msg.h
  143. fsck.c
  144. fsck.h
  145. fsmonitor.c
  146. fsmonitor.h
  147. generate-cmdlist.sh
  148. gettext.c
  149. gettext.h
  150. git-add--interactive.perl
  151. git-archimport.perl
  152. git-bisect.sh
  153. git-compat-util.h
  154. git-cvsexportcommit.perl
  155. git-cvsimport.perl
  156. git-cvsserver.perl
  157. git-difftool--helper.sh
  158. git-filter-branch.sh
  159. git-instaweb.sh
  160. git-merge-octopus.sh
  161. git-merge-one-file.sh
  162. git-merge-resolve.sh
  163. git-mergetool--lib.sh
  164. git-mergetool.sh
  165. git-p4.py
  166. git-parse-remote.sh
  167. git-quiltimport.sh
  168. git-rebase--am.sh
  169. git-rebase--interactive.sh
  170. git-rebase--merge.sh
  171. git-rebase--preserve-merges.sh
  172. git-rebase.sh
  173. git-remote-testgit.sh
  174. git-request-pull.sh
  175. git-send-email.perl
  176. git-sh-i18n.sh
  177. git-sh-setup.sh
  178. git-stash.sh
  179. git-submodule.sh
  180. git-svn.perl
  181. GIT-VERSION-GEN
  182. git-web--browse.sh
  183. git.c
  184. git.rc
  185. gpg-interface.c
  186. gpg-interface.h
  187. graph.c
  188. graph.h
  189. grep.c
  190. grep.h
  191. hash.h
  192. hashmap.c
  193. hashmap.h
  194. help.c
  195. help.h
  196. hex.c
  197. http-backend.c
  198. http-fetch.c
  199. http-push.c
  200. http-walker.c
  201. http.c
  202. http.h
  203. ident.c
  204. imap-send.c
  205. INSTALL
  206. iterator.h
  207. json-writer.c
  208. json-writer.h
  209. khash.h
  210. kwset.c
  211. kwset.h
  212. levenshtein.c
  213. levenshtein.h
  214. LGPL-2.1
  215. line-log.c
  216. line-log.h
  217. line-range.c
  218. line-range.h
  219. list-objects-filter-options.c
  220. list-objects-filter-options.h
  221. list-objects-filter.c
  222. list-objects-filter.h
  223. list-objects.c
  224. list-objects.h
  225. list.h
  226. ll-merge.c
  227. ll-merge.h
  228. lockfile.c
  229. lockfile.h
  230. log-tree.c
  231. log-tree.h
  232. ls-refs.c
  233. ls-refs.h
  234. mailinfo.c
  235. mailinfo.h
  236. mailmap.c
  237. mailmap.h
  238. Makefile
  239. match-trees.c
  240. mem-pool.c
  241. mem-pool.h
  242. merge-blobs.c
  243. merge-blobs.h
  244. merge-recursive.c
  245. merge-recursive.h
  246. merge.c
  247. mergesort.c
  248. mergesort.h
  249. name-hash.c
  250. notes-cache.c
  251. notes-cache.h
  252. notes-merge.c
  253. notes-merge.h
  254. notes-utils.c
  255. notes-utils.h
  256. notes.c
  257. notes.h
  258. object-store.h
  259. object.c
  260. object.h
  261. oidmap.c
  262. oidmap.h
  263. oidset.c
  264. oidset.h
  265. pack-bitmap-write.c
  266. pack-bitmap.c
  267. pack-bitmap.h
  268. pack-check.c
  269. pack-objects.c
  270. pack-objects.h
  271. pack-revindex.c
  272. pack-revindex.h
  273. pack-write.c
  274. pack.h
  275. packfile.c
  276. packfile.h
  277. pager.c
  278. parse-options-cb.c
  279. parse-options.c
  280. parse-options.h
  281. patch-delta.c
  282. patch-ids.c
  283. patch-ids.h
  284. path.c
  285. path.h
  286. pathspec.c
  287. pathspec.h
  288. pkt-line.c
  289. pkt-line.h
  290. preload-index.c
  291. pretty.c
  292. pretty.h
  293. prio-queue.c
  294. prio-queue.h
  295. progress.c
  296. progress.h
  297. prompt.c
  298. prompt.h
  299. protocol.c
  300. protocol.h
  301. quote.c
  302. quote.h
  303. reachable.c
  304. reachable.h
  305. read-cache.c
  306. README.md
  307. ref-filter.c
  308. ref-filter.h
  309. reflog-walk.c
  310. reflog-walk.h
  311. refs.c
  312. refs.h
  313. refspec.c
  314. refspec.h
  315. remote-curl.c
  316. remote-testsvn.c
  317. remote.c
  318. remote.h
  319. replace-object.c
  320. replace-object.h
  321. repository.c
  322. repository.h
  323. rerere.c
  324. rerere.h
  325. resolve-undo.c
  326. resolve-undo.h
  327. revision.c
  328. revision.h
  329. run-command.c
  330. run-command.h
  331. send-pack.c
  332. send-pack.h
  333. sequencer.c
  334. sequencer.h
  335. serve.c
  336. serve.h
  337. server-info.c
  338. setup.c
  339. sh-i18n--envsubst.c
  340. sha1-array.c
  341. sha1-array.h
  342. sha1-file.c
  343. sha1-lookup.c
  344. sha1-lookup.h
  345. sha1-name.c
  346. sha1dc_git.c
  347. sha1dc_git.h
  348. shallow.c
  349. shell.c
  350. shortlog.h
  351. sideband.c
  352. sideband.h
  353. sigchain.c
  354. sigchain.h
  355. split-index.c
  356. split-index.h
  357. strbuf.c
  358. strbuf.h
  359. streaming.c
  360. streaming.h
  361. string-list.c
  362. string-list.h
  363. sub-process.c
  364. sub-process.h
  365. submodule-config.c
  366. submodule-config.h
  367. submodule.c
  368. submodule.h
  369. symlinks.c
  370. tag.c
  371. tag.h
  372. tar.h
  373. tempfile.c
  374. tempfile.h
  375. thread-utils.c
  376. thread-utils.h
  377. tmp-objdir.c
  378. tmp-objdir.h
  379. trace.c
  380. trace.h
  381. trailer.c
  382. trailer.h
  383. transport-helper.c
  384. transport-internal.h
  385. transport.c
  386. transport.h
  387. tree-diff.c
  388. tree-walk.c
  389. tree-walk.h
  390. tree.c
  391. tree.h
  392. unicode-width.h
  393. unimplemented.sh
  394. unix-socket.c
  395. unix-socket.h
  396. unpack-trees.c
  397. unpack-trees.h
  398. upload-pack.c
  399. upload-pack.h
  400. url.c
  401. url.h
  402. urlmatch.c
  403. urlmatch.h
  404. usage.c
  405. userdiff.c
  406. userdiff.h
  407. utf8.c
  408. utf8.h
  409. varint.c
  410. varint.h
  411. version.c
  412. version.h
  413. versioncmp.c
  414. walker.c
  415. walker.h
  416. wildmatch.c
  417. wildmatch.h
  418. worktree.c
  419. worktree.h
  420. wrap-for-bin.sh
  421. wrapper.c
  422. write-or-die.c
  423. ws.c
  424. wt-status.c
  425. wt-status.h
  426. xdiff-interface.c
  427. xdiff-interface.h
  428. zlib.c
README.md

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-.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://public-inbox.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