refs: create a base class "ref_store" for files_ref_store

We want ref_stores to be polymorphic, so invent a base class of which
files_ref_store is a derived class. For now there is exactly one
ref_store for the main repository and one for any submodules whose
references have been accessed.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
3 files changed
tree: 42aeb59c625ab3367921fcef57145adb86d9803c
  1. block-sha1/
  2. builtin/
  3. compat/
  4. contrib/
  5. Documentation/
  6. ewah/
  7. git-gui/
  8. gitk-git/
  9. gitweb/
  10. mergetools/
  11. perl/
  12. po/
  13. ppc/
  14. refs/
  15. t/
  16. templates/
  17. vcs-svn/
  18. xdiff/
  19. .gitattributes
  20. .gitignore
  21. .mailmap
  22. .travis.yml
  23. abspath.c
  24. aclocal.m4
  25. advice.c
  26. advice.h
  27. alias.c
  28. alloc.c
  29. archive-tar.c
  30. archive-zip.c
  31. archive.c
  32. archive.h
  33. argv-array.c
  34. argv-array.h
  35. attr.c
  36. attr.h
  37. base85.c
  38. bisect.c
  39. bisect.h
  40. blob.c
  41. blob.h
  42. branch.c
  43. branch.h
  44. builtin.h
  45. bulk-checkin.c
  46. bulk-checkin.h
  47. bundle.c
  48. bundle.h
  49. cache-tree.c
  50. cache-tree.h
  51. cache.h
  52. check-builtins.sh
  53. check-racy.c
  54. check_bindir
  55. color.c
  56. color.h
  57. column.c
  58. column.h
  59. combine-diff.c
  60. command-list.txt
  61. commit-slab.h
  62. commit.c
  63. commit.h
  64. config.c
  65. config.mak.in
  66. config.mak.uname
  67. configure.ac
  68. connect.c
  69. connect.h
  70. connected.c
  71. connected.h
  72. convert.c
  73. convert.h
  74. copy.c
  75. COPYING
  76. credential-cache--daemon.c
  77. credential-cache.c
  78. credential-store.c
  79. credential.c
  80. credential.h
  81. csum-file.c
  82. csum-file.h
  83. ctype.c
  84. daemon.c
  85. date.c
  86. decorate.c
  87. decorate.h
  88. delta.h
  89. diff-delta.c
  90. diff-lib.c
  91. diff-no-index.c
  92. diff.c
  93. diff.h
  94. diffcore-break.c
  95. diffcore-delta.c
  96. diffcore-order.c
  97. diffcore-pickaxe.c
  98. diffcore-rename.c
  99. diffcore.h
  100. dir-iterator.c
  101. dir-iterator.h
  102. dir.c
  103. dir.h
  104. editor.c
  105. entry.c
  106. environment.c
  107. exec_cmd.c
  108. exec_cmd.h
  109. fast-import.c
  110. fetch-pack.c
  111. fetch-pack.h
  112. fmt-merge-msg.h
  113. fsck.c
  114. fsck.h
  115. generate-cmdlist.sh
  116. gettext.c
  117. gettext.h
  118. git-add--interactive.perl
  119. git-archimport.perl
  120. git-bisect.sh
  121. git-compat-util.h
  122. git-cvsexportcommit.perl
  123. git-cvsimport.perl
  124. git-cvsserver.perl
  125. git-difftool--helper.sh
  126. git-difftool.perl
  127. git-filter-branch.sh
  128. git-instaweb.sh
  129. git-merge-octopus.sh
  130. git-merge-one-file.sh
  131. git-merge-resolve.sh
  132. git-mergetool--lib.sh
  133. git-mergetool.sh
  134. git-p4.py
  135. git-parse-remote.sh
  136. git-quiltimport.sh
  137. git-rebase--am.sh
  138. git-rebase--interactive.sh
  139. git-rebase--merge.sh
  140. git-rebase.sh
  141. git-relink.perl
  142. git-remote-testgit.sh
  143. git-request-pull.sh
  144. git-send-email.perl
  145. git-sh-i18n.sh
  146. git-sh-setup.sh
  147. git-stash.sh
  148. git-submodule.sh
  149. git-svn.perl
  150. GIT-VERSION-GEN
  151. git-web--browse.sh
  152. git.c
  153. git.rc
  154. git.spec.in
  155. gpg-interface.c
  156. gpg-interface.h
  157. graph.c
  158. graph.h
  159. grep.c
  160. grep.h
  161. hashmap.c
  162. hashmap.h
  163. help.c
  164. help.h
  165. hex.c
  166. http-backend.c
  167. http-fetch.c
  168. http-push.c
  169. http-walker.c
  170. http.c
  171. http.h
  172. ident.c
  173. imap-send.c
  174. INSTALL
  175. iterator.h
  176. khash.h
  177. kwset.c
  178. kwset.h
  179. levenshtein.c
  180. levenshtein.h
  181. LGPL-2.1
  182. line-log.c
  183. line-log.h
  184. line-range.c
  185. line-range.h
  186. list-objects.c
  187. list-objects.h
  188. ll-merge.c
  189. ll-merge.h
  190. lockfile.c
  191. lockfile.h
  192. log-tree.c
  193. log-tree.h
  194. mailinfo.c
  195. mailinfo.h
  196. mailmap.c
  197. mailmap.h
  198. Makefile
  199. match-trees.c
  200. merge-blobs.c
  201. merge-blobs.h
  202. merge-recursive.c
  203. merge-recursive.h
  204. merge.c
  205. mergesort.c
  206. mergesort.h
  207. name-hash.c
  208. notes-cache.c
  209. notes-cache.h
  210. notes-merge.c
  211. notes-merge.h
  212. notes-utils.c
  213. notes-utils.h
  214. notes.c
  215. notes.h
  216. object.c
  217. object.h
  218. pack-bitmap-write.c
  219. pack-bitmap.c
  220. pack-bitmap.h
  221. pack-check.c
  222. pack-objects.c
  223. pack-objects.h
  224. pack-revindex.c
  225. pack-revindex.h
  226. pack-write.c
  227. pack.h
  228. pager.c
  229. parse-options-cb.c
  230. parse-options.c
  231. parse-options.h
  232. patch-delta.c
  233. patch-ids.c
  234. patch-ids.h
  235. path.c
  236. pathspec.c
  237. pathspec.h
  238. pkt-line.c
  239. pkt-line.h
  240. preload-index.c
  241. pretty.c
  242. prio-queue.c
  243. prio-queue.h
  244. progress.c
  245. progress.h
  246. prompt.c
  247. prompt.h
  248. quote.c
  249. quote.h
  250. reachable.c
  251. reachable.h
  252. read-cache.c
  253. README.md
  254. ref-filter.c
  255. ref-filter.h
  256. reflog-walk.c
  257. reflog-walk.h
  258. refs.c
  259. refs.h
  260. remote-curl.c
  261. remote-testsvn.c
  262. remote.c
  263. remote.h
  264. replace_object.c
  265. rerere.c
  266. rerere.h
  267. resolve-undo.c
  268. resolve-undo.h
  269. revision.c
  270. revision.h
  271. run-command.c
  272. run-command.h
  273. send-pack.c
  274. send-pack.h
  275. sequencer.c
  276. sequencer.h
  277. server-info.c
  278. setup.c
  279. sh-i18n--envsubst.c
  280. sha1-array.c
  281. sha1-array.h
  282. sha1-lookup.c
  283. sha1-lookup.h
  284. sha1_file.c
  285. sha1_name.c
  286. shallow.c
  287. shell.c
  288. shortlog.h
  289. show-index.c
  290. sideband.c
  291. sideband.h
  292. sigchain.c
  293. sigchain.h
  294. split-index.c
  295. split-index.h
  296. strbuf.c
  297. strbuf.h
  298. streaming.c
  299. streaming.h
  300. string-list.c
  301. string-list.h
  302. submodule-config.c
  303. submodule-config.h
  304. submodule.c
  305. submodule.h
  306. symlinks.c
  307. tag.c
  308. tag.h
  309. tar.h
  310. tempfile.c
  311. tempfile.h
  312. test-chmtime.c
  313. test-config.c
  314. test-ctype.c
  315. test-date.c
  316. test-delta.c
  317. test-dump-cache-tree.c
  318. test-dump-split-index.c
  319. test-dump-untracked-cache.c
  320. test-fake-ssh.c
  321. test-genrandom.c
  322. test-hashmap.c
  323. test-index-version.c
  324. test-line-buffer.c
  325. test-match-trees.c
  326. test-mergesort.c
  327. test-mktemp.c
  328. test-parse-options.c
  329. test-path-utils.c
  330. test-prio-queue.c
  331. test-read-cache.c
  332. test-regex.c
  333. test-revision-walking.c
  334. test-run-command.c
  335. test-scrap-cache-tree.c
  336. test-sha1-array.c
  337. test-sha1.c
  338. test-sha1.sh
  339. test-sigchain.c
  340. test-string-list.c
  341. test-submodule-config.c
  342. test-subprocess.c
  343. test-svn-fe.c
  344. test-urlmatch-normalization.c
  345. test-wildmatch.c
  346. thread-utils.c
  347. thread-utils.h
  348. trace.c
  349. trace.h
  350. trailer.c
  351. trailer.h
  352. transport-helper.c
  353. transport.c
  354. transport.h
  355. tree-diff.c
  356. tree-walk.c
  357. tree-walk.h
  358. tree.c
  359. tree.h
  360. unicode_width.h
  361. unimplemented.sh
  362. unix-socket.c
  363. unix-socket.h
  364. unpack-trees.c
  365. unpack-trees.h
  366. update_unicode.sh
  367. upload-pack.c
  368. url.c
  369. url.h
  370. urlmatch.c
  371. urlmatch.h
  372. usage.c
  373. userdiff.c
  374. userdiff.h
  375. utf8.c
  376. utf8.h
  377. varint.c
  378. varint.h
  379. version.c
  380. version.h
  381. versioncmp.c
  382. walker.c
  383. walker.h
  384. wildmatch.c
  385. wildmatch.h
  386. worktree.c
  387. worktree.h
  388. wrap-for-bin.sh
  389. wrapper.c
  390. write_or_die.c
  391. ws.c
  392. wt-status.c
  393. wt-status.h
  394. xdiff-interface.c
  395. xdiff-interface.h
  396. 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 http://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 http://news.gmane.org/gmane.comp.version-control.git/, http://marc.info/?l=git and other archival sites.

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