summaryrefslogtreecommitdiff
path: root/revision.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-02-21 12:05:02 -0800
committerJunio C Hamano <gitster@pobox.com>2013-04-22 07:59:22 -0700
commitbe1a07fe27695081537d31748b989f86c82383cc (patch)
tree36bec251b5259cf89c85a47158e6f75070726d43 /revision.h
parent47d6c5f2c112df55997742eab8d974bfa1cf7b3e (diff)
downloadgit-jc/format-patch.tar.gz
format-patch: --inline-singlejc/format-patch
Some people may find it convenient to append a simple patch at the bottom of a discussion e-mail separated by a "scissors" mark, ready to be applied with "git am -c". Introduce "--inline-single" option to format-patch to do so. A typical usage example might be to start 'f'ollow-up to a discussion, write your message, conclude with "a patch to do so may look like this.", and then \C-u M-! git format-patch --inline-single -1 HEAD <ENTER> if you are an Emacs user. Users of other MUA's may want to consult their manuals to find an equivalent command to append output from an external command to the message being composed. It does not make any sense to use this mode when formatting multiple patches, or to combine this with options such as --attach, --inline, and --cover-letter, so some of such uses are forbidden. There may be more insane combination the check in this patch may not even bother to reject. Caveat emptor. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.h')
-rw-r--r--revision.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/revision.h b/revision.h
index 40b9773b6c..1f7de1b8b9 100644
--- a/revision.h
+++ b/revision.h
@@ -143,6 +143,7 @@ struct rev_info {
const char *log_reencode;
const char *subject_prefix;
int disposition_attachment;
+ int inline_single;
int show_log_size;
struct string_list *mailmap;