Skip to contentSkip to conversation

docs: ja_JP: SubmittingPatches: describe the 'Fixes:' tag (12-char SHA-1 + pretty example)

PATCH Superseded Akiyoshi Kurita 1 participant 1 message Sep 9, 2025

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 docs: ja_JP: SubmittingPatches: describe the 'Fixes:' tag (12-char SHA-1 + pretty example)

Add a Japanese section describing the Fixes: tag, use a consistent 12-character SHA-1 in the example, and include the pretty-format snippet to generate a Fixes: line with git log/show.
No functional changes.

---
v3:
- Cover both 8401aa1f5997 (description/purpose) and 5b5bbb8cc51be (pretty format example).
- Use 12-character SHA-1 consistently in examples.
- v3 fully replaces v2 (not incremental).

---

---
 .../translations/ja_JP/SubmittingPatches      | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/translations/ja_JP/SubmittingPatches +21 -0
index 5334db471744..1d1e9622eafe 100644
@@ -132,6 +132,27 @@ http://savannah.nongnu.org/projects/quilt
        platform_set_drvdata(), but left the variable "dev" unused,
        delete it.
 
+特定のコミットで導入された不具合を修正するパッチである場合(例えば ``git bisect`` で
+問題の導入コミットを特定した場合など)、そのコミットを指し示すために「Fixes:」タグを
+使用してください。下流の -stable 系列での自動ピックアップにも利用されるため、**正確な**
+コミット ID と **1 行の要約**を記載することが重要です。
+
+書式(SHA-1 は短縮 12 文字に統一)::
+
+        Fixes: e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")
+
+以下の git-config を設定すると、上記スタイルの行を ``git log`` や ``git show`` で
+出力するためのプリティフォーマットを追加できます::
+
+        [core]
+                abbrev = 12
+        [pretty]
+                fixes = Fixes: %h (\"%s\")
+
+呼び出し例::
+
+        $ git log -1 --pretty=fixes e21d2170f366
+        Fixes: e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")
 
 3) パッチの分割
 
Signature · 1 line
2.47.3