test 1
PATCH 1/1 test 1
---
include/configs/{mgcoge3ne.h => km82xx.h} | 95 ++++++++++++++++++++++-------
include/configs/mgcoge.h | 93 ----------------------------
2 files changed, 74 insertions(+), 114 deletions(-)
rename include/configs/{mgcoge3ne.h => km82xx.h} (55%)
delete mode 100644 include/configs/mgcoge.h...
Oops, I forgot to "git add boards.cfg" here, but for this test it makes no difference.
Quoted 7 lines
$ git --version git version 1.7.1$ ~/git/bin-wrappers/git --version git version 1.7.11.3Could you please share what GIT version you're running?
-> git --version
git version 1.7.10.4
That's what I get from the normal Fedora 17 installation.
Quoted 3 lines
Could you please try applying the patch to your tree (namely 3 and 4), and then build it again by running:
git-format-patch -M30% -C
See above...
Quoted 6 lines
In any case, I have no clue whether git would be able to correctly (i.e. intelligently) apply such patch to a slightly different tree (e.g. through cherry-pick or rebase).
So for instance, in your example above, what if file.1 (whose contents is anyway moved into file.common, regardless of rename detection) is slightly different?
It doesn't matter. If there are conflicts, and these can be resolved, it works just the same.
Quoted 4 lines
I'm strongly convinced that if we want to track such changes for what they are (code moving) so that they can be "easily" re-applied, we should mark this explicitly. Even at the cost of creating multiple patches if necessary. Since git isn't able to figure it out by itself,
No, on contrary. This is basicly an atomic change, and we should not artificially split it. git should have no problems with such actions, they are really not special in any way.
Quoted 1 line
the only way I can think of doing this is splitting the commit into 3 parts:
No, please don't.
Quoted 9 lines
Since mgcoge and mgcoge3ne are the only km82xx boards, there is no need to keep them as separate .h config files. Therefore, make
mgcoge3ne.handmgcoge.hconverge into a singlekm82xx.hfile.
Step 2 of 3: substitute include files through the following script:INCLUDE_STMT='#include "
mgcoge.h"'
INCLUDED=include/configs/mgcoge.h
INCLUDING=include/configs/km82xx.h
Argh.... No, this is not what we're going to do.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All a hacker needs is a tight PUSHJ, a loose pair of UUOs, and a warm place to shift.