All of lore.kernel.org
 help / color / mirror / Atom feed
* [maintainer-tools PATCH] drm-intel: Add note about patches that move code between files
@ 2016-03-09 11:46 Ander Conselvan de Oliveira
  2016-03-09 12:50 ` Dave Gordon
  0 siblings, 1 reply; 3+ messages in thread
From: Ander Conselvan de Oliveira @ 2016-03-09 11:46 UTC (permalink / raw)
  To: intel-gfx; +Cc: Ander Conselvan de Oliveira

Patches that move big chunks of code between files can cause some
complicated conflicts. Add a note to coordinate with maintainers before
merging such patches.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
---
 drm-intel.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drm-intel.rst b/drm-intel.rst
index c0c2f20..89df24b 100644
--- a/drm-intel.rst
+++ b/drm-intel.rst
@@ -350,6 +350,10 @@ An inexhaustive list of details to check:
   http://developercertificate.org/. dim apply-branch should do this
   automatically for you.
 
+* For patches that move around lots of code (file rename or extraction) please
+  coordinate with maintainers to avoid unnecessary pain with conflicts. Usually
+  some explicit merges are needed to avoid git getting lost.
+
 On Confidence, Complexity, and Transparency
 -------------------------------------------
 
-- 
2.4.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [maintainer-tools PATCH] drm-intel: Add note about patches that move code between files
  2016-03-09 11:46 [maintainer-tools PATCH] drm-intel: Add note about patches that move code between files Ander Conselvan de Oliveira
@ 2016-03-09 12:50 ` Dave Gordon
  2016-03-10  8:34   ` Ander Conselvan De Oliveira
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Gordon @ 2016-03-09 12:50 UTC (permalink / raw)
  To: Ander Conselvan de Oliveira, intel-gfx

On 09/03/16 11:46, Ander Conselvan de Oliveira wrote:
> Patches that move big chunks of code between files can cause some
> complicated conflicts. Add a note to coordinate with maintainers before
> merging such patches.
>
> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
> ---
>   drm-intel.rst | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/drm-intel.rst b/drm-intel.rst
> index c0c2f20..89df24b 100644
> --- a/drm-intel.rst
> +++ b/drm-intel.rst
> @@ -350,6 +350,10 @@ An inexhaustive list of details to check:
>     http://developercertificate.org/. dim apply-branch should do this
>     automatically for you.
>
> +* For patches that move around lots of code (file rename or extraction) please
> +  coordinate with maintainers to avoid unnecessary pain with conflicts. Usually
> +  some explicit merges are needed to avoid git getting lost.
> +
>   On Confidence, Complexity, and Transparency
>   -------------------------------------------

Perhaps also add a note about "git blame -C", as recently discussed here 
by Tvrtko & Arun in the thread "[PATCH 044/190] drm/i915: Move GEM 
request routines to i915_gem_request.c"?

.Dave.

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [maintainer-tools PATCH] drm-intel: Add note about patches that move code between files
  2016-03-09 12:50 ` Dave Gordon
@ 2016-03-10  8:34   ` Ander Conselvan De Oliveira
  0 siblings, 0 replies; 3+ messages in thread
From: Ander Conselvan De Oliveira @ 2016-03-10  8:34 UTC (permalink / raw)
  To: Dave Gordon, intel-gfx

On Wed, 2016-03-09 at 12:50 +0000, Dave Gordon wrote:
> On 09/03/16 11:46, Ander Conselvan de Oliveira wrote:
> > Patches that move big chunks of code between files can cause some
> > complicated conflicts. Add a note to coordinate with maintainers before
> > merging such patches.
> > 
> > Signed-off-by: Ander Conselvan de Oliveira <
> > ander.conselvan.de.oliveira@intel.com>
> > ---
> >   drm-intel.rst | 4 ++++
> >   1 file changed, 4 insertions(+)
> > 
> > diff --git a/drm-intel.rst b/drm-intel.rst
> > index c0c2f20..89df24b 100644
> > --- a/drm-intel.rst
> > +++ b/drm-intel.rst
> > @@ -350,6 +350,10 @@ An inexhaustive list of details to check:
> >     http://developercertificate.org/. dim apply-branch should do this
> >     automatically for you.
> > 
> > +* For patches that move around lots of code (file rename or extraction)
> > please
> > +  coordinate with maintainers to avoid unnecessary pain with conflicts.
> > Usually
> > +  some explicit merges are needed to avoid git getting lost.
> > +
> >   On Confidence, Complexity, and Transparency
> >   -------------------------------------------
> 
> Perhaps also add a note about "git blame -C", as recently discussed here 
> by Tvrtko & Arun in the thread "[PATCH 044/190] drm/i915: Move GEM 
> request routines to i915_gem_request.c"?

I think that would be a bit out of place here. What this patch changes is the
list of things to check before merging a patch. It doesn't discuss the merits of
moving code around and is not a dump for git tips and tricks. To keep the above
list concise and on-topic, I'd rather leave that out.

I didn't know about 'git blame -C', however. Maybe we could have a list of
useful git commands somewhere? Probably out of maintainer tools if it would
include information that is useful when not merging patches. I'm not sure I
would have read that list if it existed though. Last time I remember learning so
mething new about git was when I stumbled upon git commit --fixup in Damien's
blog, but that was a fairly random event.

Ander

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-10  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 11:46 [maintainer-tools PATCH] drm-intel: Add note about patches that move code between files Ander Conselvan de Oliveira
2016-03-09 12:50 ` Dave Gordon
2016-03-10  8:34   ` Ander Conselvan De Oliveira

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.