2005-11-01 20:45:55 +00:00
|
|
|
git-fmt-merge-msg(1)
|
|
|
|
====================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
git-fmt-merge-msg - Produce a merge commit message
|
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2007-05-18 13:39:33 +00:00
|
|
|
[verse]
|
usage: do not insist that standard input must come from a file
The synopsys text and the usage string of subcommands that read list
of things from the standard input are often shown like this:
git gostak [--distim] < <list-of-doshes>
This is problematic in a number of ways:
* The way to use these commands is more often to feed them the
output from another command, not feed them from a file.
* Manual pages outside Git, commands that operate on the data read
from the standard input, e.g "sort", "grep", "sed", etc., are not
described with such a "< redirection-from-file" in their synopsys
text. Our doing so introduces inconsistency.
* We do not insist on where the output should go, by saying
git gostak [--distim] < <list-of-doshes> > <output>
* As it is our convention to enclose placeholders inside <braket>,
the redirection operator followed by a placeholder filename
becomes very hard to read, both in the documentation and in the
help text.
Let's clean them all up, after making sure that the documentation
clearly describes the modes that take information from the standard
input and what kind of things are expected on the input.
[jc: stole example for fmt-merge-msg from Jonathan]
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-10-16 18:27:42 +00:00
|
|
|
'git fmt-merge-msg' [-m <message>] [--log[=<n>] | --no-log]
|
2010-09-08 17:59:54 +00:00
|
|
|
'git fmt-merge-msg' [-m <message>] [--log[=<n>] | --no-log] -F <file>
|
2005-11-01 20:45:55 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
Takes the list of merged objects on stdin and produces a suitable
|
|
|
|
commit message to be used for the merge commit, usually to be
|
2010-01-09 23:33:00 +00:00
|
|
|
passed as the '<merge-message>' argument of 'git merge'.
|
2005-11-01 20:45:55 +00:00
|
|
|
|
2009-10-09 10:16:15 +00:00
|
|
|
This command is intended mostly for internal use by scripts
|
|
|
|
automatically invoking 'git merge'.
|
2005-11-01 20:45:55 +00:00
|
|
|
|
2007-04-27 04:58:57 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
2010-09-08 17:59:54 +00:00
|
|
|
--log[=<n>]::
|
2007-04-27 04:58:57 +00:00
|
|
|
In addition to branch names, populate the log message with
|
|
|
|
one-line descriptions from the actual commits that are being
|
2010-09-08 17:59:54 +00:00
|
|
|
merged. At most <n> commits from each merge parent will be
|
|
|
|
used (20 if <n> is omitted). This overrides the `merge.log`
|
|
|
|
configuration variable.
|
2007-04-27 04:58:57 +00:00
|
|
|
|
2008-04-06 01:23:45 +00:00
|
|
|
--no-log::
|
2007-04-27 04:58:57 +00:00
|
|
|
Do not list one-line descriptions from the actual commits being
|
|
|
|
merged.
|
|
|
|
|
2013-05-09 01:16:55 +00:00
|
|
|
--[no-]summary::
|
2008-04-06 01:23:45 +00:00
|
|
|
Synonyms to --log and --no-log; these are deprecated and will be
|
|
|
|
removed in the future.
|
|
|
|
|
2010-08-17 23:00:34 +00:00
|
|
|
-m <message>::
|
|
|
|
--message <message>::
|
|
|
|
Use <message> instead of the branch names for the first line
|
|
|
|
of the log message. For use with `--log`.
|
|
|
|
|
2008-06-08 01:36:09 +00:00
|
|
|
-F <file>::
|
|
|
|
--file <file>::
|
2007-04-27 04:58:57 +00:00
|
|
|
Take the list of merged objects from <file> instead of
|
|
|
|
stdin.
|
|
|
|
|
|
|
|
CONFIGURATION
|
|
|
|
-------------
|
2015-05-27 21:52:23 +00:00
|
|
|
include::fmt-merge-msg-config.txt[]
|
2005-11-01 20:45:55 +00:00
|
|
|
|
2008-04-06 01:23:45 +00:00
|
|
|
merge.summary::
|
|
|
|
Synonym to `merge.log`; this is deprecated and will be removed in
|
|
|
|
the future.
|
|
|
|
|
2018-04-30 15:35:33 +00:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
usage: do not insist that standard input must come from a file
The synopsys text and the usage string of subcommands that read list
of things from the standard input are often shown like this:
git gostak [--distim] < <list-of-doshes>
This is problematic in a number of ways:
* The way to use these commands is more often to feed them the
output from another command, not feed them from a file.
* Manual pages outside Git, commands that operate on the data read
from the standard input, e.g "sort", "grep", "sed", etc., are not
described with such a "< redirection-from-file" in their synopsys
text. Our doing so introduces inconsistency.
* We do not insist on where the output should go, by saying
git gostak [--distim] < <list-of-doshes> > <output>
* As it is our convention to enclose placeholders inside <braket>,
the redirection operator followed by a placeholder filename
becomes very hard to read, both in the documentation and in the
help text.
Let's clean them all up, after making sure that the documentation
clearly describes the modes that take information from the standard
input and what kind of things are expected on the input.
[jc: stole example for fmt-merge-msg from Jonathan]
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-10-16 18:27:42 +00:00
|
|
|
|
2016-10-28 10:01:26 +00:00
|
|
|
---------
|
usage: do not insist that standard input must come from a file
The synopsys text and the usage string of subcommands that read list
of things from the standard input are often shown like this:
git gostak [--distim] < <list-of-doshes>
This is problematic in a number of ways:
* The way to use these commands is more often to feed them the
output from another command, not feed them from a file.
* Manual pages outside Git, commands that operate on the data read
from the standard input, e.g "sort", "grep", "sed", etc., are not
described with such a "< redirection-from-file" in their synopsys
text. Our doing so introduces inconsistency.
* We do not insist on where the output should go, by saying
git gostak [--distim] < <list-of-doshes> > <output>
* As it is our convention to enclose placeholders inside <braket>,
the redirection operator followed by a placeholder filename
becomes very hard to read, both in the documentation and in the
help text.
Let's clean them all up, after making sure that the documentation
clearly describes the modes that take information from the standard
input and what kind of things are expected on the input.
[jc: stole example for fmt-merge-msg from Jonathan]
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-10-16 18:27:42 +00:00
|
|
|
$ git fetch origin master
|
|
|
|
$ git fmt-merge-msg --log <$GIT_DIR/FETCH_HEAD
|
2016-10-28 10:01:26 +00:00
|
|
|
---------
|
usage: do not insist that standard input must come from a file
The synopsys text and the usage string of subcommands that read list
of things from the standard input are often shown like this:
git gostak [--distim] < <list-of-doshes>
This is problematic in a number of ways:
* The way to use these commands is more often to feed them the
output from another command, not feed them from a file.
* Manual pages outside Git, commands that operate on the data read
from the standard input, e.g "sort", "grep", "sed", etc., are not
described with such a "< redirection-from-file" in their synopsys
text. Our doing so introduces inconsistency.
* We do not insist on where the output should go, by saying
git gostak [--distim] < <list-of-doshes> > <output>
* As it is our convention to enclose placeholders inside <braket>,
the redirection operator followed by a placeholder filename
becomes very hard to read, both in the documentation and in the
help text.
Let's clean them all up, after making sure that the documentation
clearly describes the modes that take information from the standard
input and what kind of things are expected on the input.
[jc: stole example for fmt-merge-msg from Jonathan]
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-10-16 18:27:42 +00:00
|
|
|
|
|
|
|
Print a log message describing a merge of the "master" branch from
|
|
|
|
the "origin" remote.
|
|
|
|
|
|
|
|
|
2005-11-01 20:45:55 +00:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
2007-12-29 06:20:38 +00:00
|
|
|
linkgit:git-merge[1]
|
2005-11-01 20:45:55 +00:00
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
2008-06-06 07:07:32 +00:00
|
|
|
Part of the linkgit:git[1] suite
|