* Re: Patch priority in subjects ? [not found] <1619290298.804838.1405876434000.open-xchange@webmail.nmp.skynet.be> @ 2014-07-20 17:36 ` Joe Perches 2014-07-21 11:33 ` Richard Weinberger 0 siblings, 1 reply; 3+ messages in thread From: Joe Perches @ 2014-07-20 17:36 UTC (permalink / raw) To: Fabian Frederick; +Cc: akpm, Linus Torvalds, LKML On Sun, 2014-07-20 at 19:13 +0200, Fabian Frederick wrote: > I was reading all those "friendly" messages around checkpatch -f lately > and the fact that code clean-up is too noisy (?) > > I guess I'm not the first to think about it but why don't we use something > like a priority field in patch subject ? > > Of course it would be arbitrary but maybe better than nothing ? > > eg > > [PATCH 1/1 0] Urgent bug fix > [PATCH 1/1 1] Bug fix > [PATCH 1/1 2] ... > [PATCH 1/1 7] kernel-doc fix > [PATCH 1/1 8] Code clean-up > [PATCH 1/1 9] Trivial fix > > Maybe this could help some people to sort/filter/delete > > It's just an idea of course... It's a good idea, but this is more a subject for discussion on and by the list than off-list so I'm adding LKML. As far as I know, the only infrequently used prefixes today are "RFC" and "trivial". If you start to use a prefix, please use readable text and not some numeric table index. [RFC PATCH] [URGENT PATCH] [BUGFIX PATCH] [TRIVIAL PATCH] [CODE STYLE PATCH] etc... Getting people to use git format-patch --subject-prefix="text" will be the useful part of this challenge. Maybe you could develop YA little helper script for that, ideally with versioning support for repeated patch submissions too. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Patch priority in subjects ? 2014-07-20 17:36 ` Patch priority in subjects ? Joe Perches @ 2014-07-21 11:33 ` Richard Weinberger 2014-07-21 13:12 ` Fabian Frederick 0 siblings, 1 reply; 3+ messages in thread From: Richard Weinberger @ 2014-07-21 11:33 UTC (permalink / raw) To: Joe Perches; +Cc: Fabian Frederick, Andrew Morton, Linus Torvalds, LKML On Sun, Jul 20, 2014 at 7:36 PM, Joe Perches <joe@perches.com> wrote: > On Sun, 2014-07-20 at 19:13 +0200, Fabian Frederick wrote: >> I was reading all those "friendly" messages around checkpatch -f lately >> and the fact that code clean-up is too noisy (?) >> >> I guess I'm not the first to think about it but why don't we use something >> like a priority field in patch subject ? Code clean up is not bad per se. Actually cleaning up things is very much welcome. The thing is that pure white space or search&replace patches produced by checkpatch.pl are often not helpful at all. They pollute the git history, introduce merge conflicts, add maintenance overhead, etc.. As somebody who regularly stares at code to find outhow the heck some line of code got introduced these patches become a major PITA. Running commands like are needed far too often: git blame <sha1-of-stupid-cleanup>~1 foo/bar.c Btw: Don't even try to tell me about the -w switch... >> Of course it would be arbitrary but maybe better than nothing ? >> >> eg >> >> [PATCH 1/1 0] Urgent bug fix >> [PATCH 1/1 1] Bug fix >> [PATCH 1/1 2] ... >> [PATCH 1/1 7] kernel-doc fix >> [PATCH 1/1 8] Code clean-up >> [PATCH 1/1 9] Trivial fix >> >> Maybe this could help some people to sort/filter/delete No need to add more bureaucracy, such filtering can perfectly done by looking at the sender name. (Sadly...) We also have the trivial tree. -- Thanks, //richard ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Patch priority in subjects ? 2014-07-21 11:33 ` Richard Weinberger @ 2014-07-21 13:12 ` Fabian Frederick 0 siblings, 0 replies; 3+ messages in thread From: Fabian Frederick @ 2014-07-21 13:12 UTC (permalink / raw) To: Richard Weinberger, Joe Perches; +Cc: Andrew Morton, LKML, Linus Torvalds > On 21 July 2014 at 13:33 Richard Weinberger <richard.weinberger@gmail.com> > wrote: > > > On Sun, Jul 20, 2014 at 7:36 PM, Joe Perches <joe@perches.com> wrote: > > On Sun, 2014-07-20 at 19:13 +0200, Fabian Frederick wrote: > >> I was reading all those "friendly" messages around checkpatch -f lately > >> and the fact that code clean-up is too noisy (?) > >> > >> I guess I'm not the first to think about it but why don't we use something > >> like a priority field in patch subject ? > > Code clean up is not bad per se. > Actually cleaning up things is very much welcome. > > The thing is that pure white space or search&replace patches > produced by checkpatch.pl are often not helpful at all. > They pollute the git history, introduce merge conflicts, add > maintenance overhead, etc.. > > As somebody who regularly stares at code to find outhow the heck > some line of code got introduced these patches become a major PITA. > Running commands like are needed far too often: > git blame ~1 foo/bar.c > I understand your point of view now. Maybe Joe has an idea about this (get_maintainer ...) ? > Btw: Don't even try to tell me about the -w switch... > > >> Of course it would be arbitrary but maybe better than nothing ? > >> > >> eg > >> > >> [PATCH 1/1 0] Urgent bug fix > >> [PATCH 1/1 1] Bug fix > >> [PATCH 1/1 2] ... > >> [PATCH 1/1 7] kernel-doc fix > >> [PATCH 1/1 8] Code clean-up > >> [PATCH 1/1 9] Trivial fix > >> > >> Maybe this could help some people to sort/filter/delete > > No need to add more bureaucracy, such filtering can perfectly done > by looking at the sender name. (Sadly...) > We also have the trivial tree. I've made a small RFC script so we'll be able to talk around something concrete. I know it would add some rules to follow but having such a script related in SubmittingPatches could help in the following: -Patch prefix could help making statistics. -Having automatically -s flag (+others?) avoid thousand of replies "Please add Signed-off-by". -Avoid different formats like [PATCH 1 V3] , [PATCH 1/1 v3], [PATCH V3] -Batch patch generation, checking, sending. -... Regards, Fabian > > -- > Thanks, > //richard ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-21 13:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1619290298.804838.1405876434000.open-xchange@webmail.nmp.skynet.be>
2014-07-20 17:36 ` Patch priority in subjects ? Joe Perches
2014-07-21 11:33 ` Richard Weinberger
2014-07-21 13:12 ` Fabian Frederick
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®