2005-11-01 23:45:55 +03:00
|
|
|
git-fmt-merge-msg(1)
|
|
|
|
====================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
git-fmt-merge-msg - Produce a merge commit message
|
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2007-05-18 17:39:33 +04: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 21:27:42 +03:00
|
|
|
'git fmt-merge-msg' [-m <message>] [--log[=<n>] | --no-log]
|
2010-09-08 21:59:54 +04:00
|
|
|
'git fmt-merge-msg' [-m <message>] [--log[=<n>] | --no-log] -F <file>
|
2005-11-01 23:45:55 +03: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-10 02:33:00 +03:00
|
|
|
passed as the '<merge-message>' argument of 'git merge'.
|
2005-11-01 23:45:55 +03:00
|
|
|
|
2009-10-09 14:16:15 +04:00
|
|
|
This command is intended mostly for internal use by scripts
|
|
|
|
automatically invoking 'git merge'.
|
2005-11-01 23:45:55 +03:00
|
|
|
|
2007-04-27 08:58:57 +04:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
2010-09-08 21:59:54 +04:00
|
|
|
--log[=<n>]::
|
2007-04-27 08:58:57 +04:00
|
|
|
In addition to branch names, populate the log message with
|
|
|
|
one-line descriptions from the actual commits that are being
|
2010-09-08 21:59:54 +04: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 08:58:57 +04:00
|
|
|
|
2008-04-06 05:23:45 +04:00
|
|
|
--no-log::
|
2007-04-27 08:58:57 +04:00
|
|
|
Do not list one-line descriptions from the actual commits being
|
|
|
|
merged.
|
|
|
|
|
2013-05-09 05:16:55 +04:00
|
|
|
--[no-]summary::
|
2008-04-06 05:23:45 +04:00
|
|
|
Synonyms to --log and --no-log; these are deprecated and will be
|
|
|
|
removed in the future.
|
|
|
|
|
2010-08-18 03:00:34 +04: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 05:36:09 +04:00
|
|
|
-F <file>::
|
|
|
|
--file <file>::
|
2007-04-27 08:58:57 +04:00
|
|
|
Take the list of merged objects from <file> instead of
|
|
|
|
stdin.
|
|
|
|
|
|
|
|
CONFIGURATION
|
|
|
|
-------------
|
2018-10-27 09:22:57 +03:00
|
|
|
include::config/fmt-merge-msg.txt[]
|
2005-11-01 23:45:55 +03:00
|
|
|
|
2008-04-06 05:23:45 +04:00
|
|
|
merge.summary::
|
|
|
|
Synonym to `merge.log`; this is deprecated and will be removed in
|
|
|
|
the future.
|
|
|
|
|
2018-04-30 18:35:33 +03: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 21:27:42 +03:00
|
|
|
|
2016-10-28 13:01:26 +03: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 21:27:42 +03:00
|
|
|
$ git fetch origin master
|
|
|
|
$ git fmt-merge-msg --log <$GIT_DIR/FETCH_HEAD
|
2016-10-28 13:01:26 +03: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 21:27:42 +03:00
|
|
|
|
|
|
|
Print a log message describing a merge of the "master" branch from
|
|
|
|
the "origin" remote.
|
|
|
|
|
|
|
|
|
2005-11-01 23:45:55 +03:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
2007-12-29 09:20:38 +03:00
|
|
|
linkgit:git-merge[1]
|
2005-11-01 23:45:55 +03:00
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
2008-06-06 11:07:32 +04:00
|
|
|
Part of the linkgit:git[1] suite
|