author | Jeff King <peff@peff.net> | |
Mon, 20 Jun 2011 16:59:28 +0000 (12:59 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 20 Jun 2011 20:00:54 +0000 (13:00 -0700) | ||
commit | 588d0e834b244565863fa80e6c48c20e0db9b62f | |
tree | b3e36bafc4e34d0e826a62ddfe1d26f7f4626df7 | tree | snapshot |
parent | daab4eeafa0dc620d67ccb57c28e08f6f8b3868c | commit | diff |
tag: accept multiple patterns for --list
Until now, "git tag -l foo* bar*" would silently ignore the
second argument, showing only refs starting with "foo". It's
not just unfriendly not to take a second pattern; we
actually generated subtly wrong results (from the user's
perspective) because some of the requested tags were
omitted.
This patch allows an arbitrary number of patterns on the
command line; if any of them matches, the ref is shown.
While we're tweaking the documentation, let's also make it
clear that the pattern is fnmatch.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Until now, "git tag -l foo* bar*" would silently ignore the
second argument, showing only refs starting with "foo". It's
not just unfriendly not to take a second pattern; we
actually generated subtly wrong results (from the user's
perspective) because some of the requested tags were
omitted.
This patch allows an arbitrary number of patterns on the
command line; if any of them matches, the ref is shown.
While we're tweaking the documentation, let's also make it
clear that the pattern is fnmatch.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-tag.txt | diff | blob | history | |
builtin/tag.c | diff | blob | history | |
t/t7004-tag.sh | diff | blob | history |