]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: git-format-patch: describe the option --always
author徐沛文 (Aleen) <aleen42@vip.qq.com>
Thu, 9 Dec 2021 07:25:53 +0000 (07:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Dec 2021 01:04:15 +0000 (17:04 -0800)
This commit has described how to use '--always' option in the command
'git-format-patch' to include patches for commits that emit no changes.

Signed-off-by: 徐沛文 (Aleen) <aleen42@vip.qq.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-format-patch.txt

index 113eabc107ca94f801eca64591421065a2bc54b4..be797d7a28f62f38e2dc38c82141e71b97ea4aae 100644 (file)
@@ -18,7 +18,7 @@ SYNOPSIS
                   [-n | --numbered | -N | --no-numbered]
                   [--start-number <n>] [--numbered-files]
                   [--in-reply-to=<message id>] [--suffix=.<sfx>]
-                  [--ignore-if-in-upstream]
+                  [--ignore-if-in-upstream] [--always]
                   [--cover-from-description=<mode>]
                   [--rfc] [--subject-prefix=<subject prefix>]
                   [(--reroll-count|-v) <n>]
@@ -192,6 +192,10 @@ will want to ensure that threading is disabled for `git send-email`.
        patches being generated, and any patch that matches is
        ignored.
 
+--always::
+       Include patches for commits that do not introduce any change,
+       which are omitted by default.
+
 --cover-from-description=<mode>::
        Controls which parts of the cover letter will be automatically
        populated using the branch's description.