Ihor Radchenko <yanta...@posteo.net> writes:
No Wayman <iarchivedmywholel...@gmail.com> writes:
Feel free to take this the patch as a base to do whatever you
please with it.
Then, I am thinking about a simple approach that will not
involve
internet connection. See the attached.
I think that's the best solution. I landed on something similar
for Elpaca (and will likely suggest the same for straight.el).
Note that you, in fact, can fetch the latest tags from remote
into
shallow clone. See
https://stackoverflow.com/questions/66349002/get-latest-tag-git-describe-tags-when-repo-is-cloned-with-depth-1
Seems more complicated than it's worth at this point.
# Use the org.el header.
ORGVERSION := $(patsubst %-dev,%,$(shell $(BATCH) --eval
"(require 'lisp-mnt)" \
--visit lisp/org.el --eval '(princ (lm-header
"version"))'))
- GITVERSION ?= $(shell git describe --match release\*
--abbrev=6 HEAD)
+ GITVERSION ?= $(shell git describe --match release\*
--abbrev=6 HEAD 2>/dev/null || echo "release_N/A-N/A-$(shell
git log --format=%h HEAD^..HEAD)")
Why not use ORGVERSION here? Is the metadata in org.el's version
header not updated when a commit is tagged as a release?