Skip to content

Fix rebase with file move when diff.renames = copies

Jonathan Nieder git 1 version In review

Get series with b4
b4 am 20100723170103.GA2507@burratino

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5t4150 (am): style tweakst/t4150-am.sh t/test-lib.sh+136 -1080 replies
2/5t4150 (am): futureproof against failing testst/t4150-am.sh+47 -10 replies
3/5Teach "apply --index-info" to handle rename patchesbuiltin/apply.c t/t4150-am.sh+47 -20 replies
4/5t3400 (rebase): whitespace cleanupt/t3400-rebase.sh+92 -900 replies
5/5rebase: protect against diff.renames configurationgit-rebase.sh t/t3400-rebase.sh+24 -23 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Fix rebase with file move when diff.renames = copies
Quoted 3 lines · David D. Kilzer

My original patch in <http://marc.info/?l=git&m=122635667614099&w=2> addressed this in builtin-apply.c, but Junio didn't like this approach as noted in
<http://marc.info/?l=git&m=122636097120953&w=2>.

Got it. This patch just treats the symptoms in my opinion, and if you read Junio’s message carefully, I think he was also suggesting that git apply should still be fixed.

Something like this series would fix both. Please feel free to pick it up and take it in whatever direction you like.

Hope that helps.

Jonathan Nieder (3):
t4150 (am): style tweaks
t4150 (am): futureproof against failing tests
t3400 (rebase): whitespace cleanup

Junio C Hamano (2):
Teach "apply --index-info" to handle rename patches
rebase: protect against diff.renames configuration

 builtin/apply.c   |    3 +-
 git-rebase.sh     |    2 +-
 t/t3400-rebase.sh |  204 ++++++++++++++++++--------------
 t/t4150-am.sh     |  334 +++++++++++++++++++++++++++++++++++-----------------
 t/test-lib.sh     |    4 +
 5 files changed, 345 insertions(+), 202 deletions(-)
Signature · 1 line
1.7.2.rc3