Dear Gerlando Falauto, In message <50164f3a.6050...@keymile.com> you wrote: > > >> boards.cfg | 4 +- > >> include/configs/km82xx.h | 149 > >> +++++++++++++++++++++++++++++++++++++++++++ > >> include/configs/mgcoge.h | 93 --------------------------- > >> include/configs/mgcoge3ne.h | 93 --------------------------- > >> 4 files changed, 151 insertions(+), 188 deletions(-) > >> create mode 100644 include/configs/km82xx.h > >> delete mode 100644 include/configs/mgcoge.h > >> delete mode 100644 include/configs/mgcoge3ne.h > > > > Can you please try creating this patch with git format-patch with > > options "-M" and "-C", please? I think git should do better to > > recognize this rename / merge of two files. > > I tried this but to no avail, the resulting patch is still the same. > Same for patch number 4. > > I guess git gets confused by the fact that we are merging two files into > one.
No, git can handle this pretty well if you tell it what you are doing. I just retested this; the result is: --- file.1 | 64 --------------------------------------------------- file.2 => file.common | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 64 deletions(-) delete mode 100644 file.1 rename file.2 => file.common (63%) > What I could do is to split this commit so that, for instance, > first we rename one of the files and then (on a separate commit) we move > the content of one into the other. No, this can and should be done in a single commit, for example like this: 1. run: git mv include/configs/mgcoge.h include/configs/km82xx.h 2. merge include/configs/mgcoge3ne.h into include/configs/km82xx.h 3. run: git rm include/configs/mgcoge3ne.h git format-patch -M -C will then recognize what you did. > Question is, is this really worth the effort? > Is there a common practice for such reworks? Yes, if possible we want that git tracks such renames / merges. And here it seems easily possible. Best regards, Wolfgang Denk -- 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: w...@denx.de You see things; and you say ``Why?'' But I dream things that never were; and I say ``Why not?'' - George Bernard Shaw _Back to Methuselah_ (1921) pt. 1, act 1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot