On Mon, Dec 12, 2022 at 6:35 PM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote: > > Well here's a hacky thing - just look for duplicated patch titles after > stripping away the hashes. Please don't do that. Just use the git machinery that Vlastimil pointed at. "git cherry" uses the actual patch ID (which is just a hash of the patch with whitespace removed), so it actually looks at the patch itself, not just eh first line of the commit message. If you insist on writing your own shell script for this, please use that same "patch-id" logic. That's made available by "git patch-id". But do "man git-cherry" and "man git-patch-id" before you do any of that. And in no situation should you go "the first line of the commit message is identical, so the patches must be the same". Linus