Skip to content

Commit 5229149

Browse files
gnpricegitster
authored andcommitted
describe: Document --match pattern format
It's not clear in git-describe(1) what kind of "pattern" should be passed to --match. Fix that. Signed-off-by: Greg Price <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dff9f88 commit 5229149

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-describe.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ OPTIONS
8181
that points at object deadbee....).
8282

8383
--match <pattern>::
84-
Only consider tags matching the given pattern (can be used to avoid
85-
leaking private tags made from the repository).
84+
Only consider tags matching the given `glob(7)` pattern,
85+
excluding the "refs/tags/" prefix. This can be used to avoid
86+
leaking private tags from the repository.
8687

8788
--always::
8889
Show uniquely abbreviated commit object as fallback.

0 commit comments

Comments
 (0)