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.suppressDest
54 By adding a glob that matches the names of integration branches to
55 this multi-valued configuration variable, the default merge message
56 computed for merges into these integration branches will omit "into
57 <branch name>" from its title.
58
59 An element with an empty value can be used to clear the list of
60 globs accumulated from previous configuration entries. When there
61 is no merge.suppressDest variable defined, the default value of
62 master is used for backward compatibility.
63
64 merge.summary
65 Synonym to merge.log; this is deprecated and will be removed in the
66 future.
67
69 $ git fetch origin master
70 $ git fmt-merge-msg --log <$GIT_DIR/FETCH_HEAD
71
72 Print a log message describing a merge of the "master" branch from the
73 "origin" remote.
74
76 git-merge(1)
77
79 Part of the git(1) suite
80
81
82
83Git 2.33.1 2021-10-12 GIT-FMT-MERGE-MSG(1)