DescriptionTurn on git diff copy detection for git-cl upload.
Enable copy detection for git-cl upload. This makes
it possible to copy a directory containing many files,
add+commit the new path, and then upload a patch to
Rietveld that shows the files were copied.
In my tests, -C -C was needed to pick up a basic
file copy. -C was not enough. I'm not sure why
exactly. The output generated in the diff looks
like:
sh$ git diff -C -C HEAD~1..HEAD
diff --git a/slave/Makefile b/slave2/Makefile
similarity index 100%
copy from slave/Makefile
copy to slave2/Makefile
...
(This change requires r141676 /
https://chromiumcodereview.appspot.com/10543116/ which
updates upload.py to use --find-copies-harder.)
R=maruel@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141689
Patch Set 1 #
Total comments: 1
Patch Set 2 : reduce CL to only change git-cl #
Total comments: 2
Patch Set 3 : use --find-copies-harder #Messages
Total messages: 7 (0 generated)
|