Re: patch: version_stamp.pl: Add Git commit info to version if 'git' is specified - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: patch: version_stamp.pl: Add Git commit info to version if 'git' is specified
Date
Msg-id alpine.DEB.2.10.1508281110260.16616@sto
Whole thread Raw
In response to Re: patch: version_stamp.pl: Add Git commit info to version if 'git' is specified  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
> I've done the same using the output $(git describe --tags --dirty) -
> which will return something like REL9_5_ALPHA1-330-g8a7d070-dirty.

Looks good!

> That's still not perfect considering plpgsql and such,

ISTM That even for plpgsql it could be done, the stamp can be generated 
when the shared object/dll is generated, and could be made available from 
some inspection function.

> but it's pretty helpful.

Yep.

-- 
Fabien.



pgsql-hackers by date:

Previous
From: "Shulgin, Oleksandr"
Date:
Subject: Re: psql - better support pipe line
Next
From: Etsuro Fujita
Date:
Subject: Re: Minor code improvements to create_foreignscan_plan/ExecInitForeignScan