author | Jeff King <peff@peff.net> | |
Tue, 29 Mar 2011 20:59:42 +0000 (16:59 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 29 Mar 2011 21:39:24 +0000 (14:39 -0700) | ||
commit | 92e0d42539a34e90f5c9bf29eb741f0d87173027 | |
tree | 8eead1847476de332ab32cf9d8dcba88a89d21f3 | tree | snapshot |
parent | 7249e91287443c02b2c7eed272a579dae44984ad | commit | diff |
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>
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 | diff | blob | history | |
t/t3301-notes.sh | diff | blob | history |