Print out the edge commits for each packfile in fast-import.

To help callers repack very large repositories into a series of
packfiles fast-import now outputs the last commits/tags it wrote to
a packfile when it prints out the packfile name.  This information
can be feed to pack-objects --revs to repack.  For the first pack
of an initial import this is pretty easy (just feed those SHA1s on
stdin) but for subsequent packs you want to feed the subsequent
pack's final SHA1s but also all prior pack's SHA1s prefixed with
the negation operator.  This way the prior pack's data does not
get included into the subsequent pack.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 file changed
tree: a7688070956a314b67c17c398e324ef19131f4e1
  1. arm/
  2. compat/
  3. contrib/
  4. Documentation/
  5. gitweb/
  6. mozilla-sha1/
  7. perl/
  8. ppc/
  9. t/
  10. templates/
  11. xdiff/
  12. .gitignore
  13. .mailmap
  14. alloc.c
  15. archive-tar.c
  16. archive-zip.c
  17. archive.h
  18. base85.c
  19. blob.c
  20. blob.h
  21. builtin-add.c
  22. builtin-annotate.c
  23. builtin-apply.c
  24. builtin-archive.c
  25. builtin-blame.c
  26. builtin-branch.c
  27. builtin-cat-file.c
  28. builtin-check-ref-format.c
  29. builtin-checkout-index.c
  30. builtin-commit-tree.c
  31. builtin-count-objects.c
  32. builtin-describe.c
  33. builtin-diff-files.c
  34. builtin-diff-index.c
  35. builtin-diff-stages.c
  36. builtin-diff-tree.c
  37. builtin-diff.c
  38. builtin-fmt-merge-msg.c
  39. builtin-for-each-ref.c
  40. builtin-grep.c
  41. builtin-init-db.c
  42. builtin-log.c
  43. builtin-ls-files.c
  44. builtin-ls-tree.c
  45. builtin-mailinfo.c
  46. builtin-mailsplit.c
  47. builtin-merge-file.c
  48. builtin-mv.c
  49. builtin-name-rev.c
  50. builtin-pack-objects.c
  51. builtin-pack-refs.c
  52. builtin-prune-packed.c
  53. builtin-prune.c
  54. builtin-push.c
  55. builtin-read-tree.c
  56. builtin-reflog.c
  57. builtin-repo-config.c
  58. builtin-rerere.c
  59. builtin-rev-list.c
  60. builtin-rev-parse.c
  61. builtin-rm.c
  62. builtin-runstatus.c
  63. builtin-shortlog.c
  64. builtin-show-branch.c
  65. builtin-show-ref.c
  66. builtin-stripspace.c
  67. builtin-symbolic-ref.c
  68. builtin-tar-tree.c
  69. builtin-unpack-objects.c
  70. builtin-update-index.c
  71. builtin-update-ref.c
  72. builtin-upload-archive.c
  73. builtin-verify-pack.c
  74. builtin-write-tree.c
  75. builtin.h
  76. cache-tree.c
  77. cache-tree.h
  78. cache.h
  79. check-builtins.sh
  80. check-racy.c
  81. color.c
  82. color.h
  83. combine-diff.c
  84. commit.c
  85. commit.h
  86. config.c
  87. config.mak.in
  88. configure.ac
  89. connect.c
  90. convert-objects.c
  91. copy.c
  92. COPYING
  93. csum-file.c
  94. csum-file.h
  95. ctype.c
  96. daemon.c
  97. date.c
  98. delta.h
  99. diff-delta.c
  100. diff-lib.c
  101. diff.c
  102. diff.h
  103. diffcore-break.c
  104. diffcore-delta.c
  105. diffcore-order.c
  106. diffcore-pickaxe.c
  107. diffcore-rename.c
  108. diffcore.h
  109. dir.c
  110. dir.h
  111. dump-cache-tree.c
  112. entry.c
  113. environment.c
  114. exec_cmd.c
  115. exec_cmd.h
  116. fast-import.c
  117. fetch-pack.c
  118. fetch.c
  119. fetch.h
  120. fsck-objects.c
  121. generate-cmdlist.sh
  122. git-add--interactive.perl
  123. git-am.sh
  124. git-applymbox.sh
  125. git-applypatch.sh
  126. git-archimport.perl
  127. git-bisect.sh
  128. git-checkout.sh
  129. git-clean.sh
  130. git-clone.sh
  131. git-commit.sh
  132. git-compat-util.h
  133. git-cvsexportcommit.perl
  134. git-cvsimport.perl
  135. git-cvsserver.perl
  136. git-fetch.sh
  137. git-gc.sh
  138. git-instaweb.sh
  139. git-lost-found.sh
  140. git-ls-remote.sh
  141. git-merge-octopus.sh
  142. git-merge-one-file.sh
  143. git-merge-ours.sh
  144. git-merge-resolve.sh
  145. git-merge-stupid.sh
  146. git-merge.sh
  147. git-p4import.py
  148. git-parse-remote.sh
  149. git-pull.sh
  150. git-quiltimport.sh
  151. git-rebase.sh
  152. git-relink.perl
  153. git-remote.perl
  154. git-repack.sh
  155. git-request-pull.sh
  156. git-reset.sh
  157. git-resolve.sh
  158. git-revert.sh
  159. git-send-email.perl
  160. git-sh-setup.sh
  161. git-svn.perl
  162. git-svnimport.perl
  163. git-tag.sh
  164. git-verify-tag.sh
  165. GIT-VERSION-GEN
  166. git.c
  167. git.spec.in
  168. gitk
  169. grep.c
  170. grep.h
  171. hash-object.c
  172. help.c
  173. http-fetch.c
  174. http-push.c
  175. http.c
  176. http.h
  177. ident.c
  178. imap-send.c
  179. index-pack.c
  180. INSTALL
  181. interpolate.c
  182. interpolate.h
  183. list-objects.c
  184. list-objects.h
  185. local-fetch.c
  186. lockfile.c
  187. log-tree.c
  188. log-tree.h
  189. Makefile
  190. merge-base.c
  191. merge-file.c
  192. merge-index.c
  193. merge-recursive.c
  194. merge-tree.c
  195. mktag.c
  196. mktree.c
  197. object-refs.c
  198. object.c
  199. object.h
  200. pack-check.c
  201. pack-redundant.c
  202. pack.h
  203. pager.c
  204. patch-delta.c
  205. patch-id.c
  206. path-list.c
  207. path-list.h
  208. path.c
  209. peek-remote.c
  210. pkt-line.c
  211. pkt-line.h
  212. quote.c
  213. quote.h
  214. reachable.c
  215. reachable.h
  216. read-cache.c
  217. README
  218. receive-pack.c
  219. refs.c
  220. refs.h
  221. revision.c
  222. revision.h
  223. rsh.c
  224. rsh.h
  225. run-command.c
  226. run-command.h
  227. send-pack.c
  228. server-info.c
  229. setup.c
  230. sha1_file.c
  231. sha1_name.c
  232. shallow.c
  233. shell.c
  234. show-index.c
  235. sideband.c
  236. sideband.h
  237. ssh-fetch.c
  238. ssh-pull.c
  239. ssh-push.c
  240. ssh-upload.c
  241. strbuf.c
  242. strbuf.h
  243. tag.c
  244. tag.h
  245. tar.h
  246. test-date.c
  247. test-delta.c
  248. test-sha1.c
  249. test-sha1.sh
  250. trace.c
  251. tree-diff.c
  252. tree-walk.c
  253. tree-walk.h
  254. tree.c
  255. tree.h
  256. unpack-file.c
  257. unpack-trees.c
  258. unpack-trees.h
  259. update-server-info.c
  260. upload-pack.c
  261. usage.c
  262. utf8.c
  263. utf8.h
  264. var.c
  265. write_or_die.c
  266. wt-status.c
  267. wt-status.h
  268. xdiff-interface.c
  269. xdiff-interface.h