Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hymkor/jjtagdesc

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

go jj jujutsu powershell

Last synced: 8 days ago
JSON representation

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

Awesome Lists containing this project

README

        

jjTagDesc
=========

An emurator of `git describe --tags` on the DVCS [Jujutsu](https://martinvonz.github.io/jj/) ( [github.com/martinvonz/jj](https://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.