Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jRdgo-00054I-8w for mharc-grub-devel@gnu.org; Thu, 23 Apr 2020 11:22:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48200) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRdgl-00053Y-Kw for grub-devel@gnu.org; Thu, 23 Apr 2020 11:22:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRdgk-0008IP-GZ for grub-devel@gnu.org; Thu, 23 Apr 2020 11:22:55 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:40302) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRdgk-0008Gw-26 for grub-devel@gnu.org; Thu, 23 Apr 2020 11:22:54 -0400 Received: by mail-pl1-x631.google.com with SMTP id t16so2473655plo.7 for ; Thu, 23 Apr 2020 08:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=B4YUoqWZQUb8yQB7ndL/EI47R11v162ORkdsEPijPRw=; b=eLvHOzy32CSfuElYU0lPSq2TkMo/+HcqGSdBLpR26COcQL3QKq3OBBDSqc9L3wrbA/ Q/B/9/uw2xlc3brRssmCl15+ZMnMLo7md0cgaqT2Qfll5BWZi4J7R+bO0WX8klfwjlGB PEwRQAfw98EiXpJGN3/C2gJN5B73ot/ciwXD0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=B4YUoqWZQUb8yQB7ndL/EI47R11v162ORkdsEPijPRw=; b=bT//1CoblbwZ19r4aKxgQHgw1NZkf5S85e+wMnwKhA4kaNNt/LSBTgjq2uUOyLg/UP D8LNNrzmqxk0ExrPqbIvGth7TAly8Ob7DfC0aUkE2Q9U1ja11MwvP9SSQhOc6OKagvzq 0yuBByJgY2DZQ2aWGf9TZ6xMYr8N5XvscwNu6I4V09k45DyUzXX89JzHqFmAS6oPWqMZ x96go4sXnjKXzzIwfK1tn4d86u8bD/qMchTuwLeVFwvluW81r6VhmXfvqsGF4W4O94h3 OW9+R5wbkEtBb0Lr0sDAdZkCr5yRmwNH7smQqAlkoQWdlXlJiEwjqbPvhUoMUHIxNDyu wtVg== X-Gm-Message-State: AGi0PuYh1IJv3LfXcrBe6l9GXMlCEuZPAuyb4HGq+TD1sbP26MnINnfx tWh0+EWSo95QerNQcoTZr3rVGJwUbuk= X-Google-Smtp-Source: APiQypIKv2WLmIKsqYKjXgjf0Ko6Z5izfB6pzG2FRUC4rv6OnjxEQ5vtx2msixoGT9Doz7a2DoVQCg== X-Received: by 2002:a17:90a:ad02:: with SMTP id r2mr1199010pjq.63.1587655371790; Thu, 23 Apr 2020 08:22:51 -0700 (PDT) Received: from localhost (2001-44b8-111e-5c00-7979-720a-9390-aec6.static.ipv6.internode.on.net. [2001:44b8:111e:5c00:7979:720a:9390:aec6]) by smtp.gmail.com with ESMTPSA id d126sm628967pfc.81.2020.04.23.08.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2020 08:22:51 -0700 (PDT) From: Daniel Axtens To: Hans Ulrich Niedermann , grub-devel@gnu.org Subject: Re: How to submit patches and patchsets via grub-devel In-Reply-To: <20200423162048.4c7a4b19@n-dimensional.de> References: <20200423162048.4c7a4b19@n-dimensional.de> Date: Fri, 24 Apr 2020 01:22:47 +1000 Message-ID: <87d07yteew.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=dja@axtens.net; helo=mail-pl1-x631.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::631 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2020 15:22:56 -0000 Hi Hans, > Hello, > > as I am continuing to flood this mailing list with patches, I am > realizing that I am missing some general rules for how things work on > grub-devel. Sorry for the inconvenience caused by that. > > Anyway, here are a few questions I am beginning realize I should know > the answers to before posting patches to grub-devel: > > * What to put into the cover letter (git send-email --compose)? > > * How to format commit messages? > > * What about those special lines within commit messages? > > * Signed-off-by: > * Reviewed-by: > > Who adds these special lines and when? If Daniel replies to me > posting a patch with "Reviewed-by: Daniel", does that mean I should > include that in my next iteration of that patch? Does it mean > Daniel approves of the patch and plans to merge it to master > himself with or without adding the Reviewed-by by himself? > > Are there other special lines I need to be aware of? I don't know about grub specifically but these lines are extremely common in the linux kernel community, where they're documented at: (picking v4.17 as it came up first in the google search results and it's still pretty current) https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html Specifically: https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes I generally follow the kernel patch guidelines across any project I contribute to where appropriate - obviously in this case there are things like the GNU coding style rather than the linux coding style, so it's not all applicable! But I think the kernel guidance on patch format is extremely good and generally applicable - that might answer your first two questions. > > * How are reviews done? Is there a formal definition of preconditions > which must be satisfied before something is actually committed to > the master branch? Again, just in terms of kernel practice, see https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes Projects (and indeed different subsystems within the kernel) have different rules about what's formally required (e.g. is a Reviewed-by required, does the maintainer apply a reviewed-by tag or a signed-off-by tag) so I won't speak for Daniel K on this. > I presume a good place to write those down for grub would be > docs/grub-dev.texi. I had not intended to touch grub-dev.texi much > before 2.06, but apparently this needs to be done first so I can > properly do the other things for 2.06. Am I wrong in this presumption > and just missing the place where the general rules on how to contribute > patches are written down? > > Anyway, when I am finding out what those rules are I can start > writing them down without much additional effort, starting with what > Daniel replied to me in > <20200423100837.jllsb57rjitmd2xl@tomti.i.net-space.pl>. > > Please add to this list if you notice something missing from it, so I > can collect all that, write it up for docs/grub-dev.texi and post a > patch updating docs/grub-dev.texi in a week or two. > > So, here are the "how to submit patches via grub-devel" rules so far: > > * If you post more than one patch, create a cover email > (git send-email --compose ...). I tend to use git format-patch --cover-letter and then look over everything first - but most of my colleagues do it the way you've suggested. > > * Create a new email thread for a new patchset. Do not attach it > to existing email threads. > > * If you need to repost a patchset, repost the whole series of > patches as a new email thread instead of just reposting some > individual patches. > My personal opinion is that these are all excellent rules for all involved. Regards, Daniel > Thanks for your help. > > Uli > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel