[Buildroot] [PATCH 0/4] rt-tests: patches rename & versoin bump & support of non-NPTL tools

Peter Korsgaard jacmet at uclibc.org
Tue Nov 11 20:59:04 UTC 2014


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

Hi,

 > I must confess that I don't actually don't know precisely how git
 > encodes renames. But basically, my understanding is that even if you do

Easy, it doesn't. It just stores blobs and the old and new files will
share the same blob as they are identical. The rename detection is only
for how you want the commit to PRESENTED.

 > "git mv", "git format-patch" will encode a rename as a complete removal
 > + a complete addition, because that's the only way, in the traditional
 > patch format, to express a rename. However, by passing -M to git
 > format-patch, you tell git that it can generate a git patch, making the
 > assumption that it's git that will be used to apply the patch, and not
 > just the basic "patch" tool. In this case, it can encode the rename in
 > a smarter way.

Indeed. You can enable it by default with something like:

git config --global diff.renames copy

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list