Skip to content

hymkor/jjtagdesc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jjTagDesc

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())::"

PowerShell version

Copy jjtagdesc.ps1 to your work directory and write On Makefile(GNU):

VERSION:=$(shell powershell -noprofile -ex unrestricted -file jjtagdesc.ps1)

Example

$ 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.

Go version

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 .

Example

$ 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.

About

An emurator of `git describe --tags` on the DVCS Jujutsu ( https://github.com/martinvonz/jj )

Topics

Resources

License

Stars

Watchers

Forks