Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/git-format-patch.txt')
-rw-r--r--Documentation/git-format-patch.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
index 67425dc035..23acb47528 100644
--- a/Documentation/git-format-patch.txt
+++ b/Documentation/git-format-patch.txt
@@ -11,7 +11,7 @@ SYNOPSIS
[verse]
'git-format-patch' [-n | -k] [-o <dir> | --stdout] [--attach] [--thread]
[-s | --signoff] [--diff-options] [--start-number <n>]
- [--in-reply-to=Message-Id]
+ [--in-reply-to=Message-Id] [--suffix=.<sfx>]
<since>[..<until>]
DESCRIPTION
@@ -78,6 +78,16 @@ OPTIONS
reply to the given Message-Id, which avoids breaking threads to
provide a new patch series.
+--suffix=.<sfx>::
+ Instead of using `.txt` as the suffix for generated
+ filenames, use specifed suffix. A common alternative is
+ `--suffix=.patch`.
++
+Note that you would need to include the leading dot `.` if you
+want a filename like `0001-description-of-my-change.patch`, and
+the first letter does not have to be a dot. Leaving it empty would
+not add any suffix.
+
CONFIGURATION
-------------
You can specify extra mail header lines to be added to each
@@ -86,6 +96,11 @@ message in the repository configuration as follows:
[format]
headers = "Organization: git-foo\n"
+You can specify default suffix used:
+
+[format]
+ suffix = .patch
+
EXAMPLES
--------