[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 4/7] Rename monitor_x86.c to monitor.c and monitor_arch.h to monitor.h


  • To: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
  • From: Corneliu ZUZU <czuzu@xxxxxxxxxxxxxxx>
  • Date: Wed, 10 Feb 2016 22:36:59 +0200
  • Cc: Keir Fraser <keir@xxxxxxx>, Ian Campbell <ian.campbell@xxxxxxxxxx>, Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Wed, 10 Feb 2016 20:37:19 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=1zd0lyHH0EkD+6TkLPSvE7qT0MlTiVIkRFK4z8T5o3v9MDsd6GA1jy3CrtkNb7RB4isinGUydaG23SqMHTKLIktOQBBAngjVe15mp7N8Id6BjNcJXMoZva6x6bNgTiJjCpNAdGSCn2E/tTPpGObsgqeBuNZNg3+yieODYIxaW85W335RQ8XRz5Tdko484W+WGq71SA9yt80Wrw9jSuSXejh3wRgBIlCTDN/T66OZNoMhGcvxkSR9pseOpS5KMdK9K84mP3NpeGQ4GGV+VMTxvmx37sX4cO6uqwlatv8NbpJaf7Ly5FRT271j1jdC+vt3FF+6E8bfXduXquPjynva8Q==; h=Received:Received:Received:Received:Received:Subject:To:References:Cc:From:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 2/10/2016 6:44 PM, Tamas K Lengyel wrote:


On Wed, Feb 10, 2016 at 8:54 AM, Corneliu ZUZU <czuzu@xxxxxxxxxxxxxxx> wrote:
Rename:
    - arch/x86/monitor_x86.c -> arch/x86/monitor.c
    - asm-{x86,arm}/monitor_arch.h -> asm-{x86,arm}/monitor.h

(previous commit explains why these renames were necessary)

Referencing a "previous commit" like this is not acceptable as you don't know how these patches will get applied and there might be other patches that get committed in-between yours. In each patch explain clearly why the patch is needed. I still find it odd that you need to rename x86/monitor.c -> x86/monitor_x86.c -> x86/monitor.c in the same series.
 

Signed-off-by: Corneliu ZUZU <czuzu@xxxxxxxxxxxxxxx>
---

As I stated earlier, those commits (4 & 6) are the result of a git diff
limitation (also see my responses to these patches in v1).
The following simple experiment illustrates my point precisely:
1) create a local git repo, add file ./a.txt there with many lines (e.g. 100) and make that commit 1
2) now create a dir ./d, move a.txt -> ./d/a.txt and add another ./a.txt w/ few lines, e.g. 2, make that commit 2

Git diff (even w/ the -M, -C options) of commit 2 would then report that:

    # ./a.txt has been modified => diff w/ 100 deletions & 2 additions
    # ./d/a.txt has been added => diff w/ 100 additions
    => 202 additions & deletions total, *even though* similarity between ./a.txt in commit 1 and
        ./d/a.txt in commit 2 is 100% ! (also even if you use -M, -C diff options)

*instead of* reporting

    # ./a.txt moved to ./d/a.txt, similarity index 100% => 0 deletions & 0 additions
    # added ./a.txt => 2 additions
    => 2 additions total

You could see why this limitation would have made the diffs somewhat bulky,
especially when those files also get to be modified in the process.
This is also the reason why accepting patch 3 without 4 or 5 without 6 wouldn't
make sense, 3+4 should be treated as a single patch, 5+6 similarly.

As a proposed resolution: since I took these measures *only to ease code review*,
patches 4 & 6 can be safely squashed onto their previous commits (3 & 5) when and if acking them.
Or I could just worry less about this next time and simply squash them myself before sending
them for review, less to do on my part :).

Corneliu.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.