Subject: Re: bug#75484: 29.4; Enhancement request: Support packages providing git commit id

From: Mark Diekhans <[email-masked]>
Date: Sun, 16 Mar 2025 21:47:21 -0700

Hi Stefan,

Apologies for not being clear.

package.el provides (package-get-version), which allows a package
to get its own version.

The package system does know the commit:
     Status: Installed in ‘bbdb-20231122.1326/’ (unsigned).
    Version: 20231122.1326
     Commit: 53e8ba04c47b3542db75b68f9663941daf2e6ca4

It would be useful for packages that want to provide the
comment to be able to obtain the commit in a similar manner,
such as (package-get-commit).

thanks
Mark

Stefan Kangas <[email-masked]> writes:
> Mark Diekhans <[email-masked]> writes:
> 
> > It would be highly useful for to have support for packages to providing the git commit id corresponding to the code.  Something akin to package-get-version.
> >
> > thanks!
> 
> Sorry, I don't think I understand what you're asking for here.
> 
> Could you please elaborate or try to explain this in a different way?
> 
> Thanks.