blob: 423b6e033ba512f8a8ed6fe3f0ee6ef158dd5234 [file] [log] [blame]
Petr Baudis3c643142005-11-01 21:45:55 +01001git-fmt-merge-msg(1)
2====================
3
4NAME
5----
6git-fmt-merge-msg - Produce a merge commit message
7
8
9SYNOPSIS
10--------
Matthias Kestenholze448ff82007-05-18 15:39:33 +020011[verse]
Junio C Hamano33e8fc82015-10-16 11:27:42 -070012'git fmt-merge-msg' [-m <message>] [--log[=<n>] | --no-log]
Ramkumar Ramachandra96e94202010-09-08 23:29:54 +053013'git fmt-merge-msg' [-m <message>] [--log[=<n>] | --no-log] -F <file>
Petr Baudis3c643142005-11-01 21:45:55 +010014
15DESCRIPTION
16-----------
17Takes the list of merged objects on stdin and produces a suitable
18commit message to be used for the merge commit, usually to be
Thomas Rast0b444cd2010-01-10 00:33:00 +010019passed as the '<merge-message>' argument of 'git merge'.
Petr Baudis3c643142005-11-01 21:45:55 +010020
Jonathan Nieder0f8a02c2009-10-09 05:16:15 -050021This command is intended mostly for internal use by scripts
22automatically invoking 'git merge'.
Petr Baudis3c643142005-11-01 21:45:55 +010023
Andrew Ruder2bc060c2007-04-26 23:58:57 -050024OPTIONS
25-------
26
Ramkumar Ramachandra96e94202010-09-08 23:29:54 +053027--log[=<n>]::
Andrew Ruder2bc060c2007-04-26 23:58:57 -050028 In addition to branch names, populate the log message with
29 one-line descriptions from the actual commits that are being
Ramkumar Ramachandra96e94202010-09-08 23:29:54 +053030 merged. At most <n> commits from each merge parent will be
31 used (20 if <n> is omitted). This overrides the `merge.log`
32 configuration variable.
Andrew Ruder2bc060c2007-04-26 23:58:57 -050033
SZEDER Gábor6cd9cfe2008-04-06 03:23:45 +020034--no-log::
Andrew Ruder2bc060c2007-04-26 23:58:57 -050035 Do not list one-line descriptions from the actual commits being
36 merged.
37
Felipe Contreras0460ed22013-05-08 20:16:55 -050038--[no-]summary::
SZEDER Gábor6cd9cfe2008-04-06 03:23:45 +020039 Synonyms to --log and --no-log; these are deprecated and will be
40 removed in the future.
41
Jonathan Nieder21024402010-08-17 18:00:34 -050042-m <message>::
43--message <message>::
44 Use <message> instead of the branch names for the first line
45 of the log message. For use with `--log`.
46
Stephan Beyer32402402008-06-08 03:36:09 +020047-F <file>::
48--file <file>::
Andrew Ruder2bc060c2007-04-26 23:58:57 -050049 Take the list of merged objects from <file> instead of
50 stdin.
51
52CONFIGURATION
53-------------
SZEDER Gáborfc0aa392015-05-27 23:52:23 +020054include::fmt-merge-msg-config.txt[]
Petr Baudis3c643142005-11-01 21:45:55 +010055
SZEDER Gábor6cd9cfe2008-04-06 03:23:45 +020056merge.summary::
57 Synonym to `merge.log`; this is deprecated and will be removed in
58 the future.
59
Nguyễn Thái Ngọc Duy76a87882018-04-30 17:35:33 +020060EXAMPLES
61--------
Junio C Hamano33e8fc82015-10-16 11:27:42 -070062
Stefan Christ4259d692016-10-28 12:01:26 +020063---------
Junio C Hamano33e8fc82015-10-16 11:27:42 -070064$ git fetch origin master
65$ git fmt-merge-msg --log <$GIT_DIR/FETCH_HEAD
Stefan Christ4259d692016-10-28 12:01:26 +020066---------
Junio C Hamano33e8fc82015-10-16 11:27:42 -070067
68Print a log message describing a merge of the "master" branch from
69the "origin" remote.
70
71
Petr Baudis3c643142005-11-01 21:45:55 +010072SEE ALSO
73--------
Dan McGee5162e692007-12-29 00:20:38 -060074linkgit:git-merge[1]
Petr Baudis3c643142005-11-01 21:45:55 +010075
Petr Baudis3c643142005-11-01 21:45:55 +010076GIT
77---
Christian Couder9e1f0a82008-06-06 09:07:32 +020078Part of the linkgit:git[1] suite