pack-objects: use full pathname to help hashing with "thin" pack.

This uses the same hashing algorithm to the "preferred base
tree" objects and the incoming pathnames, to group the same
files from different revs together, while spreading files with
the same basename in different directories.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 file changed
tree: 7c52dc2fd5dc0179184bff01ff90fbcae58e3b32
  1. arm/
  2. compat/
  3. contrib/
  4. Documentation/
  5. mozilla-sha1/
  6. ppc/
  7. t/
  8. templates/
  9. .gitignore
  10. apply.c
  11. blob.c
  12. blob.h
  13. cache.h
  14. cat-file.c
  15. check-ref-format.c
  16. checkout-index.c
  17. clone-pack.c
  18. combine-diff.c
  19. commit-tree.c
  20. commit.c
  21. commit.h
  22. config.c
  23. connect.c
  24. convert-objects.c
  25. copy.c
  26. COPYING
  27. count-delta.c
  28. count-delta.h
  29. csum-file.c
  30. csum-file.h
  31. ctype.c
  32. daemon.c
  33. date.c
  34. delta.h
  35. describe.c
  36. diff-delta.c
  37. diff-files.c
  38. diff-index.c
  39. diff-stages.c
  40. diff-tree.c
  41. diff.c
  42. diff.h
  43. diffcore-break.c
  44. diffcore-order.c
  45. diffcore-pathspec.c
  46. diffcore-pickaxe.c
  47. diffcore-rename.c
  48. diffcore.h
  49. entry.c
  50. environment.c
  51. epoch.c
  52. epoch.h
  53. exec_cmd.c
  54. exec_cmd.h
  55. fetch-clone.c
  56. fetch-pack.c
  57. fetch.c
  58. fetch.h
  59. fsck-objects.c
  60. get-tar-commit-id.c
  61. git-add.sh
  62. git-am.sh
  63. git-applymbox.sh
  64. git-applypatch.sh
  65. git-archimport.perl
  66. git-bisect.sh
  67. git-branch.sh
  68. git-checkout.sh
  69. git-cherry.sh
  70. git-clone.sh
  71. git-commit.sh
  72. git-compat-util.h
  73. git-count-objects.sh
  74. git-cvsexportcommit.perl
  75. git-cvsimport.perl
  76. git-diff.sh
  77. git-fetch.sh
  78. git-fmt-merge-msg.perl
  79. git-format-patch.sh
  80. git-grep.sh
  81. git-log.sh
  82. git-lost-found.sh
  83. git-ls-remote.sh
  84. git-merge-octopus.sh
  85. git-merge-one-file.sh
  86. git-merge-ours.sh
  87. git-merge-recursive.py
  88. git-merge-resolve.sh
  89. git-merge-stupid.sh
  90. git-merge.sh
  91. git-mv.perl
  92. git-parse-remote.sh
  93. git-prune.sh
  94. git-pull.sh
  95. git-push.sh
  96. git-rebase.sh
  97. git-relink.perl
  98. git-repack.sh
  99. git-request-pull.sh
  100. git-rerere.perl
  101. git-reset.sh
  102. git-resolve.sh
  103. git-revert.sh
  104. git-send-email.perl
  105. git-sh-setup.sh
  106. git-shortlog.perl
  107. git-svnimport.perl
  108. git-tag.sh
  109. git-verify-tag.sh
  110. GIT-VERSION-GEN
  111. git-whatchanged.sh
  112. git.c
  113. git.spec.in
  114. gitk
  115. gitMergeCommon.py
  116. hash-object.c
  117. http-fetch.c
  118. http-push.c
  119. http.c
  120. http.h
  121. ident.c
  122. index-pack.c
  123. index.c
  124. init-db.c
  125. INSTALL
  126. local-fetch.c
  127. ls-files.c
  128. ls-tree.c
  129. mailinfo.c
  130. mailsplit.c
  131. Makefile
  132. merge-base.c
  133. merge-index.c
  134. mktag.c
  135. name-rev.c
  136. object.c
  137. object.h
  138. pack-check.c
  139. pack-objects.c
  140. pack-redundant.c
  141. pack.h
  142. patch-delta.c
  143. patch-id.c
  144. path.c
  145. peek-remote.c
  146. pkt-line.c
  147. pkt-line.h
  148. prune-packed.c
  149. quote.c
  150. quote.h
  151. read-cache.c
  152. read-tree.c
  153. README
  154. receive-pack.c
  155. refs.c
  156. refs.h
  157. repo-config.c
  158. rev-list.c
  159. rev-parse.c
  160. rsh.c
  161. rsh.h
  162. run-command.c
  163. run-command.h
  164. send-pack.c
  165. server-info.c
  166. setup.c
  167. sha1_file.c
  168. sha1_name.c
  169. shell.c
  170. show-branch.c
  171. show-index.c
  172. ssh-fetch.c
  173. ssh-pull.c
  174. ssh-push.c
  175. ssh-upload.c
  176. strbuf.c
  177. strbuf.h
  178. stripspace.c
  179. symbolic-ref.c
  180. tag.c
  181. tag.h
  182. tar-tree.c
  183. test-date.c
  184. test-delta.c
  185. tree-diff.c
  186. tree.c
  187. tree.h
  188. unpack-file.c
  189. unpack-objects.c
  190. update-index.c
  191. update-ref.c
  192. update-server-info.c
  193. upload-pack.c
  194. usage.c
  195. var.c
  196. verify-pack.c
  197. write-tree.c