On 06/01/16 12:40, Gerd Hoffmann wrote:
>   Hi,
> 
>> +                            git describe 2>/dev/null | tr -d '\n'; \
>> +                            if ! git diff-index --quiet HEAD &>/dev/null; 
>> then \
>> +                                    printf -- '-dirty'; \
>> +                            fi \
> 
> /me suggests "git describe --dirty --match 'v*'"
> 
> Saves the extra effort to check for a dirty tree manually.

We couldn't convince ourselves that support for "--dirty" is ubiquitous;
please see the sub-thread rooted at
<http://thread.gmane.org/gmane.comp.emulators.qemu/414824/focus=414828>.

> Also greatly reduces the chance non-release tags are matched, so I don't
> get results like "pull-vga-20160523-1-236-g9fd5eb7".

Since what version is "--match" supported? ;)

Thanks
Laszlo

Reply via email to