]> git.ipfire.org Git - thirdparty/git.git/commit - revision.c
revision.c: make --no-notes reset --notes list
authorJeff King <peff@peff.net>
Tue, 29 Mar 2011 20:59:42 +0000 (16:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Mar 2011 21:39:24 +0000 (14:39 -0700)
commit92e0d42539a34e90f5c9bf29eb741f0d87173027
tree8eead1847476de332ab32cf9d8dcba88a89d21f3
parent7249e91287443c02b2c7eed272a579dae44984ad
revision.c: make --no-notes reset --notes list

With most command line options, later instances of an option
override earlier ones. With cumulative options like
"--notes", however, there is no way to say "forget the
--notes I gave you before".

Let's have --no-notes trigger this forgetting, so that:

  git log --notes=foo --no-notes --notes=bar

will show only the "bar" notes.

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