An emurator of git describe --tags
on the DVCS Jujutsu ( github.com/martinvonz/jj )
It reads and parses the output of jj log --no-graph -r "latest(tags())::"
Copy jjtagdesc.ps1 to your work directory and write On Makefile(GNU):
VERSION:=$(shell powershell -noprofile -ex unrestricted -file jjtagdesc.ps1)
$ cd ../gmnlisp.git/
$ jjtagdesc.ps1
v0.4.1-19-gfd091d1
$ cd ../gmnlisp.jj/
$ jjtagdesc.ps1
v0.4.1-19-mwlxturo
gmnlisp.git
is the directory managed by Git.gmnlisp.jj
is the directory managed by Jujutsu.
Copy jjtagdesc.go to your work directory and write the following line on Makefile(GNU):
VERSION:=$(shell go run jjtagdesc.go)
jjtagdesc.go
is ignored by go build
because jjtagdesc.go
has the header //go:build run
.
$ cd ../gmnlisp.git/
$ git describe --tags
v0.4.1-19-gfd091d1
$ go run ../jjtagdesc/jjtagdesc.go
v0.4.1-19-gfd091d1
$ cd ../gmnlisp.jj
$ go run ../jjtagdesc/jjtagdesc.go
v0.4.1-19-mwlxturo
gmnlisp.git
is the directory managed by Git.gmnlisp.jj
is the directory managed by Jujutsu.