From: Ian Campbell Subject: Re: [PATCH v2 6/7] tools/xendomains: move to sbin and use init helper Date: Mon, 28 Apr 2014 10:15:44 +0100 Message-ID: <1398676544.29700.7.camel@kazak.uk.xensource.com> References: <1395262733-11885-1-git-send-email-mcgrof@do-not-panic.com> <1395262733-11885-7-git-send-email-mcgrof@do-not-panic.com> <1395416050.19839.153.camel@kazak.uk.xensource.com> <20140322021741.GH5011@wotan.suse.de> <1395655795.19365.16.camel@kazak.uk.xensource.com> <20140428051119.GA11838@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WehfB-0006lN-EF for xen-devel@lists.xenproject.org; Mon, 28 Apr 2014 09:15:49 +0000 In-Reply-To: <20140428051119.GA11838@wotan.suse.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Luis R. Rodriguez" Cc: Stefano Stabellini , Jan =?UTF-8?Q?R=C4=99korajski?= , Ian Jackson , Jacek Konieczny , M A Young , xen-devel@lists.xenproject.org, "Luis R. Rodriguez" List-Id: xen-devel@lists.xenproject.org On Mon, 2014-04-28 at 07:11 +0200, Luis R. Rodriguez wrote: > On Mon, Mar 24, 2014 at 10:09:55AM +0000, Ian Campbell wrote: > > On Sat, 2014-03-22 at 03:17 +0100, Luis R. Rodriguez wrote: > > > What I mean by keeping the history is you can do git log --follow on the > > > script after the move. > > > > The history is never lost. If git was actually losing history there > > would be uproar, and the structure of the repo prevents it anyway. > > > > I skanked up an example commit (see below) and git comes up with: > > 2 files changed, 54 insertions(+), 610 deletions(-) > > rewrite tools/hotplug/Linux/init.d/xendomains (91%) > > rename tools/hotplug/Linux/{init.d => }/xendomains (93%) > > and "git log --follow tools/hotplug/Linux/xendomains" works exactly as I > > expected, so I think things are fine. > > Did you try git format-patch -M on that? I now see what you see but I don't > see git format-patch respecting the rename detection, either way we'll know > it will be so I'll just submit it, just to be clear on the submission > that I just move the code, its not a magical rewrite. I can't remember what I did above, probably git show -M. I thought git send-email/format-patch obeyed the same option just fine though. Ian.