code54 / buildversion-plugin

A maven plugin that extracts current build information from git projects
34 stars 9 forks source link

Add support for git describe --match #7

Closed ghost closed 5 years ago

ghost commented 11 years ago

Isn't --match or --exact-match the --first-parent you are referring to?

dobladez commented 11 years ago

Hmm I don't think so... unless I'm missing something.

The plugin has logic similar to what --match does in order to avoid leaking "private" tags (it only looks for tags that start with v).

Regarding git describe --exact-match, I don't see how it would help: it only works if the repo has a tag pointing to HEAD, which is only a special case (the easiest one actually, since there's no need to walk the history at all).

Thanks

carlos commented 5 years ago

Closing this issue since we didn't get any feedback for many years.