]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/describe.c
describe: teach --match to accept multiple patterns
authorJacob Keller <jacob.keller@gmail.com>
Wed, 18 Jan 2017 23:06:07 +0000 (15:06 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Jan 2017 02:33:17 +0000 (18:33 -0800)
commit43f8080eaff82e7aedaec5aa3abfd115cf1af695
treeffd0fcd51706bc5299d6a34505737bece08a808d
parent96415b49dc4e10b64c014516a3f7cd9a51ed5269
describe: teach --match to accept multiple patterns

Teach `--match` to be accepted multiple times, accumulating a list of
patterns to match into a string list. Each pattern is inclusive, such
that a tag need only match one of the provided patterns to be
considered for matching.

This extension is useful as it enables more flexibility in what tags
match, and may avoid the need to run the describe command multiple
times to get the same result.

Add tests and update the documentation for this change.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-describe.txt
builtin/describe.c
t/t6120-describe.sh