Re: [PATCH v3 bpf-next 02/18] bpf: Add bpf_arch_text_poke() helper
From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2019-11-11 10:22:02
Also in:
bpf
On 11/11/19 9:14 AM, Peter Zijlstra wrote:
On Fri, Nov 08, 2019 at 01:39:24PM -0800, David Miller wrote:quoted
From: Peter Zijlstra <peterz@infradead.org> Date: Fri, 8 Nov 2019 22:36:24 +0100quoted
The cover leter is not preserved and should therefore... The cover letter is +ALWAYS+ preserved, we put them in the merge commit.Good to know; is this a netdev special? I've not seen this before.
I think it might be netdev special, and given developers are often used to this practice on netdev, we've adopted the same for both bpf trees as well if the cover letter contains a useful high level summary of the whole set. We've recently changed our workflow a bit after last maintainers summit and reuse Thomas' mb2q [0] in our small collection of scripts [1], so aside from other useful features, for every commit under bpf/bpf-next there is now also a 'Link:' tag pointing to https://lore.kernel.org/bpf/ archive, thus cover letter or discussions could alternatively be found this way. One downside of merge commit as cover letter is that they are usually lost (*) once commits get cherry-picked into stable trees or other downstream, backport heavy kernels, so with a 'Link:' tag it's a convenient way to quickly get more context or discussions for those cases.
Is there a convenient git command to find the merge commit for a given regular commit? Say I've used git-blame to find a troublesome commit, then how do I find the merge commit for it?
Once you have the sha, you could for example retrieve the corresponding merge commit from the upstream tree (as top commit) via: $ git log <sha>..master --ancestry-path --merges --reverse
Also, I still think this does not excuse weak individual Changelogs.
Ideally commit messages should be as self-contained as possible to have all the necessary context w/o having to look up other resources also given issue (*) above. Thanks, Daniel [0] https://git.kernel.org/pub/scm/linux/kernel/git/tglx/quilttools.git/ [1] https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/pw.git/