Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 )
- Host: GitHub
- URL: https://github.com/hymkor/jjtagdesc
- Owner: hymkor
- License: mit
- Created: 2024-01-28T23:35:40.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-01-29T03:01:46.000Z (9 months ago)
- Last Synced: 2024-03-18T06:21:38.157Z (8 months ago)
- Topics: go, jj, jujutsu, powershell
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.