rev-list: make it obvious that we do not support notes
commit2aea7a51a11598427d5b57e4bc042930d592547f
authorJeff King <peff@peff.net>
Sun, 23 Aug 2015 17:56:40 +0000 (23 13:56 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Aug 2015 17:33:15 +0000 (24 10:33 -0700)
tree51f04bb0b1edd9ae55407627736b7ee9dfa1510c
parent552a736de775994570570a0514f24e32686afbe0
rev-list: make it obvious that we do not support notes

The rev-list command does not have the internal
infrastructure to display notes. Running:

  git rev-list --notes HEAD

will silently ignore the "--notes" option. Running:

  git rev-list --notes --grep=. HEAD

will crash on an assert. Running:

  git rev-list --format=%N HEAD

will place a literal "%N" in the output (it does not even
expand to an empty string).

Let's have rev-list tell the user that it cannot fill the
user's request, rather than silently producing wrong data.
Likewise, let's remove mention of the notes options from the
rev-list documentation.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
Documentation/pretty-options.txt
Documentation/rev-list-options.txt
builtin/rev-list.c