Skip to content

checkpatch: support "base-commit:" format

John Hubbard lkml 2 versions – Applied

Status from this message: [merged] checkpatch-support-base-commit-format.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 1 replyApplied 1/1
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

* Changed to extend an existing regex line, instead of adding a new line (suggested by Joe Perches). Adjusted the commit description slightly to match.

Patches in v2 All 1 applied

#Subject and filesSizeRepliesApplied
1/1checkpatch: support "base-commit:" formatscripts/checkpatch.pl+1 -11 replyApplied

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJoe Perches
1/1A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/1] checkpatch: support "base-commit:" format

========================================================================
Changes since v1:

* Changed to extend an existing regex line, instead of adding a new line (suggested by Joe Perches). Adjusted the commit description slightly to match.

========================================================================

In order to support the get-lore-mbox.py tool described in [1], I ran:

    git format-patch --base=<commit> --cover-letter <revrange>

...which generated a "base-commit: <commit-hash>" tag at the end of the cover letter, just like you can see at the end of this cover letter. However, checkpatch.pl generated an error upon encounting "base-commit:" in the cover letter.

So, I suspect that no one is actually using the --base option yet, but if [1] leads to get-lore-mbox.py and similar scripts becoming popular, then we'll want checkpatch.pl to work well with them. This tiny patch does that.

An alternative approach to fixing this would be to make the --base option emit a checkpatch-friendly commit style. However, I think that's much less desirable, because base-commit is really just for tools (mainly "git am") to consume. And so we don't really want it to take up any more valuable lines in the commit letter than it already does.

thanks,
John Hubbard
NVIDIA

John Hubbard (1):
checkpatch: support "base-commit:" format

 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

base-commit: 0bf999f9c5e74c7ecf9dafb527146601e5c848b9

Signature · 1 line
2.25.0