summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e47f306)
raw | patch | inline | side by side (parent: e47f306)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 17 Jan 2007 23:03:39 +0000 (15:03 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 18 Jan 2007 07:48:20 +0000 (23:48 -0800) |
Editors often give easier handling of patch files if the
filename ends with .patch, so use it instead of .txt.
Signed-off-by: Junio C Hamano <junkio@cox.net>
filename ends with .patch, so use it instead of .txt.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-format-patch.txt | patch | blob | history | |
Documentation/howto/rebase-from-internal-branch.txt | patch | blob | history | |
builtin-log.c | patch | blob | history |
index 811c6e2e77fda7b06ae0816a0beb56dff77161a6..e7703a5000892c1bede48fc98d7074f49957039e 100644 (file)
provide a new patch series.
--suffix=.<sfx>::
- Instead of using `.txt` as the suffix for generated
+ Instead of using `.patch` as the suffix for generated
filenames, use specifed suffix. A common alternative is
- `--suffix=.patch`.
+ `--suffix=.txt`.
+
Note that you would need to include the leading dot `.` if you
want a filename like `0001-description-of-my-change.patch`, and
CONFIGURATION
-------------
You can specify extra mail header lines to be added to each
-message in the repository configuration as follows:
+message in the repository configuration. Also you can specify
+the default suffix different from the built-in one:
+------------
[format]
headers = "Organization: git-foo\n"
-
-You can specify default suffix used:
-
-[format]
- suffix = .patch
+ suffix = .txt
+------------
EXAMPLES
diff --git a/Documentation/howto/rebase-from-internal-branch.txt b/Documentation/howto/rebase-from-internal-branch.txt
index fcd64e9b9b6d53b46d31e0c797016e9881651604..3b3a5c2e69e59d4708171ba745d7d4009788102b 100644 (file)
$ git format-patch master^^ master
-This creates two files, 0001-XXXX.txt and 0002-XXXX.txt. Send
+This creates two files, 0001-XXXX.patch and 0002-XXXX.patch. Send
them out "To: " your project maintainer and "Cc: " your mailing
list. You could use contributed script git-send-email if
your host has necessary perl modules for this, but your usual
diff --git a/builtin-log.c b/builtin-log.c
index 930cc0401c8a6088f1da24666e610b1c8732b497..f3cff13edc80afad27b9f7930a0a736ba5aa6d16 100644 (file)
--- a/builtin-log.c
+++ b/builtin-log.c
static char *extra_headers = NULL;
static int extra_headers_size = 0;
-static const char *fmt_patch_suffix = ".txt";
+static const char *fmt_patch_suffix = ".patch";
static int git_format_config(const char *var, const char *value)
{