1
0
mirror of https://github.com/strongdm/comply synced 2024-11-24 16:44:53 +00:00
comply/vendor/github.com/Clever/gitsem
2021-10-06 14:33:14 -03:00
..
.gitignore chore: migrate to go modules 2019-07-14 13:51:10 -03:00
git.go Update go.mod and adjust pandoc and watch usability (#64) 2021-10-06 14:33:14 -03:00
golang.mk Update go.mod and adjust pandoc and watch usability (#64) 2021-10-06 14:33:14 -03:00
LICENSE Update go.mod and adjust pandoc and watch usability (#64) 2021-10-06 14:33:14 -03:00
main.go chore: migrate to go modules 2019-07-14 13:51:10 -03:00
Makefile Update go.mod and adjust pandoc and watch usability (#64) 2021-10-06 14:33:14 -03:00
README.md Update go.mod and adjust pandoc and watch usability (#64) 2021-10-06 14:33:14 -03:00
VERSION Update go.mod and adjust pandoc and watch usability (#64) 2021-10-06 14:33:14 -03:00

gitsem

A command line utility for managing semantically versioned (semver) git tags.

Run this in a git repository to bump the version and write the new data back to the VERSION file. It will also create a version commit and (optional) tag, and fail if the repo is not clean.

Installation

$ go get github.com/Clever/gitsem

Example

$ gitsem patch
$ gitsem -m "Upgrade to %s for reasons" patch
$ gitsem minor

Usage

gitsem [options] version

version can be one of: newversion | patch | minor | major

The version argument should be a valid semver string, or a field of a semver string (one of "patch", "minor", or "major"). In the second case, the existing version will be incremented by 1 in the specified field.

Options

  • m=%s specifies a commit message to use when bumping the version. If %s appears, it will be replaced with the new version number.
  • tag=true whether or not to create a tag at the version commit

Vendoring

Please view the dev-handbook for instructions.