linux-yocto/Documentation/process
Geert Uytterhoeven 6356f18f09 Align git commit ID abbreviation guidelines and checks
The guidelines for git commit ID abbreviation are inconsistent: some
places state to use 12 characters exactly, while other places recommend
12 characters or more.  The same issue is present in the checkpatch.pl
script.

E.g. Documentation/dev-tools/checkpatch.rst says:

  **GIT_COMMIT_ID**
    The proper way to reference a commit id is:
    commit <12+ chars of sha1> ("<title line>")

However, scripts/checkpatch.pl has two different checks: one warning
check accepting 12 characters exactly:

    # Check Fixes: styles is correct
    Please use correct Fixes: style 'Fixes: <12 chars of sha1> (\"<title line>\")'

and a second error check accepting 12-40 characters:

    # Check for git id commit length and improperly formed commit descriptions
    # A correctly formed commit description is:
    #    commit <SHA-1 hash length 12+ chars> ("Complete commit subject")
    Please use git commit description style 'commit <12+ chars of sha1>

Hence patches containing commit IDs with more than 12 characters are
flagged by checkpatch, and sometimes rejected by maintainers or
reviewers.  This is becoming more important with the growth of the
repository, as git may decide to use more characters in case of local
conflicts.

Fix this by settling on at least 12 characters, in both the
documentation and in the checkpatch.pl script.

Fixes: bd17e036b4 ("checkpatch: warn for non-standard fixes tag style")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/1c244040bf6ce304656e31036e5178b4b9dfb719.1733421037.git.geert+renesas@glider.be
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2024-12-30 11:40:45 -07:00
..
debugging Documentation: move dev-tools debugging files to process/debugging/ 2024-12-17 13:46:53 -07:00
1.Intro.rst
2.Process.rst Documentation: fix links to mailing list services 2024-07-03 16:52:54 -06:00
3.Early-stage.rst
4.Coding.rst Docs: Move clang-format from process/ to dev-tools/ 2024-06-26 16:36:00 -06:00
5.Posting.rst docs: 5.Posting: mentioned Suggested-by: tag 2024-12-11 09:07:40 -07:00
6.Followthrough.rst
7.AdvancedTopics.rst
8.Conclusion.rst
adding-syscalls.rst
applying-patches.rst
backporting.rst docs: fix typos and whitespace in Documentation/process/backporting.rst 2024-11-12 13:22:16 -07:00
botching-up-ioctls.rst
changes.rst docs:process:changes: fix version command for btrfs-progs 2024-10-14 13:19:33 -06:00
code-of-conduct-interpretation.rst Documentation/CoC: spell out enforcement for unacceptable behaviors 2024-11-15 14:31:59 -07:00
code-of-conduct.rst
coding-style.rst docs/process: fix typos 2024-09-10 15:16:28 -06:00
contribution-maturity-model.rst
cve.rst Documentation: Document the Linux Kernel CVE process 2024-02-17 14:46:39 +01:00
deprecated.rst
development-process.rst docs: use toctree :caption: and move introduction 2023-11-17 13:05:26 -07:00
email-clients.rst Documentation: remove :kyb: tags 2024-12-11 09:07:39 -07:00
embargoed-hardware-issues.rst Documentation: embargoed-hardware-issues.rst: add a section documenting the "early access" process 2024-07-31 13:26:43 +02:00
handling-regressions.rst docs: handling-regressions.rst: recommend using "Closes:" tags 2024-05-30 13:56:06 -06:00
howto.rst Documentation: fix links to mailing list services 2024-07-03 16:52:54 -06:00
index.rst docs: Add debugging section to process 2024-11-22 10:48:12 -07:00
kernel-docs.rst kernel-docs: Add new section for Rust learning materials 2024-10-14 09:50:29 -06:00
kernel-driver-statement.rst
kernel-enforcement-statement.rst
license-rules.rst docs/licensing: Clarify wording about "GPL" and "Proprietary" 2024-11-22 10:44:25 -07:00
maintainer-handbooks.rst
maintainer-kvm-x86.rst
maintainer-netdev.rst docs: netdev: document guidance on cleanup patches 2024-10-10 08:35:20 -07:00
maintainer-pgp-guide.rst
maintainer-soc-clean-dts.rst
maintainer-soc.rst Documentation/process: maintainer-soc: clarify submitting patches 2024-10-11 09:56:53 +00:00
maintainer-tip.rst Align git commit ID abbreviation guidelines and checks 2024-12-30 11:40:45 -07:00
maintainers.rst
management-style.rst
programming-language.rst
researcher-guidelines.rst Documentation: update mailing list addresses 2024-02-21 13:44:21 -07:00
security-bugs.rst Documentation: Document the Linux Kernel CVE process 2024-02-17 14:46:39 +01:00
stable-api-nonsense.rst
stable-kernel-rules.rst docs: stable-kernel-rules: fix typo sent->send 2024-05-02 10:20:27 -06:00
submit-checklist.rst docs: submit-checklist: use subheadings 2024-03-03 08:41:33 -07:00
submitting-patches.rst Align git commit ID abbreviation guidelines and checks 2024-12-30 11:40:45 -07:00
volatile-considered-harmful.rst