Merge branch 'jk/rev-list-has-no-notes'
"git rev-list" does not take "--notes" option, but did not complain when one is given. * jk/rev-list-has-no-notes: rev-list: make it obvious that we do not support notes
This commit is contained in:
commit
0bb71fb36d
@ -139,7 +139,9 @@ The placeholders are:
|
|||||||
- '%f': sanitized subject line, suitable for a filename
|
- '%f': sanitized subject line, suitable for a filename
|
||||||
- '%b': body
|
- '%b': body
|
||||||
- '%B': raw body (unwrapped subject and body)
|
- '%B': raw body (unwrapped subject and body)
|
||||||
|
ifndef::git-rev-list[]
|
||||||
- '%N': commit notes
|
- '%N': commit notes
|
||||||
|
endif::git-rev-list[]
|
||||||
- '%GG': raw verification message from GPG for a signed commit
|
- '%GG': raw verification message from GPG for a signed commit
|
||||||
- '%G?': show "G" for a Good signature, "B" for a Bad signature, "U" for a good,
|
- '%G?': show "G" for a Good signature, "B" for a Bad signature, "U" for a good,
|
||||||
untrusted signature and "N" for no signature
|
untrusted signature and "N" for no signature
|
||||||
|
@ -42,6 +42,7 @@ people using 80-column terminals.
|
|||||||
verbatim; this means that invalid sequences in the original
|
verbatim; this means that invalid sequences in the original
|
||||||
commit may be copied to the output.
|
commit may be copied to the output.
|
||||||
|
|
||||||
|
ifndef::git-rev-list[]
|
||||||
--notes[=<ref>]::
|
--notes[=<ref>]::
|
||||||
Show the notes (see linkgit:git-notes[1]) that annotate the
|
Show the notes (see linkgit:git-notes[1]) that annotate the
|
||||||
commit, when showing the commit log message. This is the default
|
commit, when showing the commit log message. This is the default
|
||||||
@ -73,6 +74,7 @@ being displayed. Examples: "--notes=foo" will show only notes from
|
|||||||
--[no-]standard-notes::
|
--[no-]standard-notes::
|
||||||
These options are deprecated. Use the above --notes/--no-notes
|
These options are deprecated. Use the above --notes/--no-notes
|
||||||
options instead.
|
options instead.
|
||||||
|
endif::git-rev-list[]
|
||||||
|
|
||||||
--show-signature::
|
--show-signature::
|
||||||
Check the validity of a signed commit object by passing the signature
|
Check the validity of a signed commit object by passing the signature
|
||||||
|
@ -58,9 +58,11 @@ endif::git-rev-list[]
|
|||||||
more than one `--grep=<pattern>`, commits whose message
|
more than one `--grep=<pattern>`, commits whose message
|
||||||
matches any of the given patterns are chosen (but see
|
matches any of the given patterns are chosen (but see
|
||||||
`--all-match`).
|
`--all-match`).
|
||||||
|
ifndef::git-rev-list[]
|
||||||
+
|
+
|
||||||
When `--show-notes` is in effect, the message from the notes is
|
When `--show-notes` is in effect, the message from the notes is
|
||||||
matched as if it were part of the log message.
|
matched as if it were part of the log message.
|
||||||
|
endif::git-rev-list[]
|
||||||
|
|
||||||
--all-match::
|
--all-match::
|
||||||
Limit the commits output to ones that match all given `--grep`,
|
Limit the commits output to ones that match all given `--grep`,
|
||||||
|
@ -350,6 +350,9 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
|
|||||||
revs.diff)
|
revs.diff)
|
||||||
usage(rev_list_usage);
|
usage(rev_list_usage);
|
||||||
|
|
||||||
|
if (revs.show_notes)
|
||||||
|
die(_("rev-list does not support display of notes"));
|
||||||
|
|
||||||
save_commit_buffer = (revs.verbose_header ||
|
save_commit_buffer = (revs.verbose_header ||
|
||||||
revs.grep_filter.pattern_list ||
|
revs.grep_filter.pattern_list ||
|
||||||
revs.grep_filter.header_list);
|
revs.grep_filter.header_list);
|
||||||
|
Loading…
Reference in New Issue
Block a user