diff options
author | Carlos Rica <jasampler@gmail.com> | 2007-09-01 07:10:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-31 23:24:16 -0700 |
commit | 18e32b5b7af4175f852469159d004a2a8de64658 (patch) | |
tree | f437a90154bbd8948d80a0012dcb356b51571394 /t/t1301-shared-repo.sh | |
parent | git-svn: fix dcommit clobbering upstream when committing multiple changes (diff) | |
download | tgif-18e32b5b7af4175f852469159d004a2a8de64658.tar.xz |
git-tag: Fix -l option to use better shell style globs.
This patch removes certain behaviour of "git tag -l foo", currently
listing every tag name having "foo" as a substring. The same
thing now could be achieved doing "git tag -l '*foo*'".
This feature was added recently when git-tag.sh got the -n option
for showing tag annotations, because that commit also replaced the
old "grep pattern" behaviour with a more preferable "shell pattern"
behaviour (although slightly modified as you can see).
Thus, the following builtin-tag.c implemented it in order to
ensure that tests were passing unchanged with both programs.
Since common "shell patterns" match names with a given substring
_only_ when * is inserted before and after (as in "*substring*"), and
the "plain" behaviour cannot be achieved easily with the current
implementation, this is mostly the right thing to do, in order to
make it more flexible and consistent.
Tests for "git tag" were also changed to reflect this.
Signed-off-by: Carlos Rica <jasampler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1301-shared-repo.sh')
0 files changed, 0 insertions, 0 deletions