[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl: move blktap specific code into libxl_blktap.c
On Thursday 29 July 2010 17:02:25 Ian Jackson wrote: > Christoph Egger writes ("[Xen-devel] [PATCH] libxl: move blktap specific code into libxl_blktap.c"): > > Move blktap specific code into libxl_blktap.c > > Thanks, this is going in the right direction. But can you please > split up the moving code into a different file, from the changes to > that code ? > > As it is it is almost impossible to see what changes you have made to > the code you are moving, as we have Is it enough when I explain the change and adjust the commit message accordingly ? The libxl_blktap_devpath implementation merges get_blktap2_devices() and make_blktap2_devices(). > diff old-file > stuff > - old > - code > more stuff > diff new-file > + newly > + reorganised > + code > > > If the code needs to be reorganised so that it can be moved, you > should do this in two patches, so we end up with: > > [PATCH 1/2] reorganise preparatory to moving > > diff old-file > stuff > - old > + newly > + reorganised > code > more stuff > > [PATCH 2/2] move blktap-specific code to libxl_blktap.c > Purely moving code about, no changes. > > diff old-file > stuff > - newly > - reorganised > - code > old stuff > diff new-file > + newly > + reorganised > + code hmm... doing it vice versa is easier to do because the new code merges to functions (see above). First patch contains the move and the second patch contains the merge. -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |