summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-17 11:12:03 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-17 12:03:26 -0800
commit03eeaeaea57485e288dfecc37b120b074d6e92de (patch)
tree0f9fdb45c95d894cb108e10d462c62c544dc3853 /Documentation
parent2aa73a8fa23d9f5b9048816f9884f65a2d24215a (diff)
downloadgit-03eeaeaea57485e288dfecc37b120b074d6e92de.tar.gz
Introduce 'git-format-patch --suffix=.patch'
The default can also be changed with "format.suffix" configuration. Leaving it empty would not add any suffix. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation')
-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
--------