1GIT-FMT-MERGE-MSG(1) Git Manual GIT-FMT-MERGE-MSG(1)
2
3
4
6 git-fmt-merge-msg - Produce a merge commit message
7
9 git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log]
10 git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log] -F <file>
11
13 Takes the list of merged objects on stdin and produces a suitable
14 commit message to be used for the merge commit, usually to be passed as
15 the <merge-message> argument of git merge.
16
17 This command is intended mostly for internal use by scripts
18 automatically invoking git merge.
19
21 --log[=<n>]
22 In addition to branch names, populate the log message with one-line
23 descriptions from the actual commits that are being merged. At most
24 <n> commits from each merge parent will be used (20 if <n> is
25 omitted). This overrides the merge.log configuration variable.
26
27 --no-log
28 Do not list one-line descriptions from the actual commits being
29 merged.
30
31 --[no-]summary
32 Synonyms to --log and --no-log; these are deprecated and will be
33 removed in the future.
34
35 -m <message>, --message <message>
36 Use <message> instead of the branch names for the first line of the
37 log message. For use with --log.
38
39 -F <file>, --file <file>
40 Take the list of merged objects from <file> instead of stdin.
41
43 merge.branchdesc
44 In addition to branch names, populate the log message with the
45 branch description text associated with them. Defaults to false.
46
47 merge.log
48 In addition to branch names, populate the log message with at most
49 the specified number of one-line descriptions from the actual
50 commits that are being merged. Defaults to false, and true is a
51 synonym for 20.
52
53 merge.summary
54 Synonym to merge.log; this is deprecated and will be removed in the
55 future.
56
58 $ git fetch origin master
59 $ git fmt-merge-msg --log <$GIT_DIR/FETCH_HEAD
60
61 Print a log message describing a merge of the "master" branch from the
62 "origin" remote.
63
65 git-merge(1)
66
68 Part of the git(1) suite
69
70
71
72Git 2.26.2 2020-04-20 GIT-FMT-MERGE-MSG(1)