gitsem

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL