I make heavy use of the "modern" libraries, so feel free to port the f and s bits to Emacs built-ins. Using git.el mainly takes the work of checking for the presence of git and running it and hands it off to a solid library so you don't have to do it.
The commands here are exactly the ones used by the Org build process (see mk/targets.mk lines 14 and 15), so this ought to give a string for org-version as if the user had actually performed the build themselves, which should make things a bit nicer for bug reports, and will behave as expected for packages which check org-version.
I make heavy use of the "modern" libraries, so feel free to port the
f
ands
bits to Emacs built-ins. Usinggit.el
mainly takes the work of checking for the presence of git and running it and hands it off to a solid library so you don't have to do it.The commands here are exactly the ones used by the Org build process (see
mk/targets.mk
lines 14 and 15), so this ought to give a string fororg-version
as if the user had actually performed the build themselves, which should make things a bit nicer for bug reports, and will behave as expected for packages which checkorg-version
.