|
|
Log in / Subscribe / Register

Better tools for kernel developers

Better tools for kernel developers

Posted Feb 7, 2020 0:23 UTC (Fri) by newren (guest, #5160)
In reply to: Better tools for kernel developers by pizza
Parent article: Better tools for kernel developers

> (I find it interesting that most complaints about email-based workflows basically stem from folks insisting on using crappy email clients...)

That may well be. I happen to prefer the email-based workflow for patch review, mostly because the GUI code review tools I know about were all designed wrong. But I believe a better one could be made that would improve upon email-based workflows (at least for me).

Elsewhere in this thread people are discussing `git send-email` as one reason why, so let me just bring up a different issue that folks tend to be unaware of or overlook: lack of context.

Patches, by their nature, have limited context. This can result in a few problems:
* It is not clear on which commit the patches should be applied on top of. People use various strategies to avoid this problem ("applies on top of next", "meant to build on a merge of en/fill-directory-fixes-more and ds/sparse-checkout-harden", etc.), but it can be messed up and cause problems. It has before.
* The limited context can result in patches applying "cleanly" but incorrectly. I'm not talking about intrinsic problems like semantic conflicts, either, but stuff that is specific to patch-based workflows such as hunks being added to the wrong function in a file, or files placed in the wrong directory -- see [1], [2], and [3] for examples. In fact, these problems are causing git to switch the default backend of git-rebase from the am-backend to the interactive/merge one, with likely deprecation of the am-backend to eventually follow[4].

[1] https://lore.kernel.org/git/CABPp-BGiu2nVMQY_t-rnFR5GQUz_...
[2] https://lore.kernel.org/git/20200108223557.GE32750@szeder...
[3] https://lore.kernel.org/git/xmqqh8jeh1id.fsf@gitster-ct.c...
[4] https://lore.kernel.org/git/pull.679.git.git.1576861788.g...


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds