rename: Break filepairs with different types.

When we consider if a path has been totally rewritten, we did not
touch changes from symlinks to files or vice versa.  But a change
that modifies even the type of a blob surely should count as a
complete rewrite.

While we are at it, modernise diffcore-break to be aware of gitlinks (we
do not want to touch them).

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