revision.c: support --notes command-line option
commit7249e91287443c02b2c7eed272a579dae44984ad
authorJeff King <peff@peff.net>
Tue, 29 Mar 2011 20:57:47 +0000 (29 16:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Mar 2011 21:38:55 +0000 (29 14:38 -0700)
treed9a74c891d223997ff9866bddeb4b6c623a1cbb3
parent3a03cf6b1d1cf5d05edec1781446a26782eaff09
revision.c: support --notes command-line option

We already have --show-notes, but it has a few shortcomings:

  1. Using --show-notes=<ref> implies that we should also
     show the default notes. Which means you also need to
     use --no-standard-notes if you want to suppress them.

  2. It is negated by --no-notes, which doesn't match.

  3. It's too long to type. :)

This patch introduces --notes, which behaves exactly like
--show-notes, except that using "--notes=<ref>" does not
imply showing the default notes.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
t/t3301-notes.sh