The missing git command to rapidly create tags from commit ranges.
```
USAGE:
gtag [FLAGS]
FLAGS: -d, --dryrun Just prints but doesn't tag -h, --help Prints help information -V, --version Prints version information
ARGS: range Sets the commit range pattern Sets the pattern for the tag name ```
Ranges can be specified following the standard Git range syntax (e.g. sha1..sha2
).
There's one catch though: Git treats the first commit as exclusive whereas gtag
always treats them as inclusive. This deliberate choice made for convenience.
The pattern is a simple string that can take ##i
as a replacement markers that
will automatically be replaced by the index of the commit in the range. Alternatively
##ii
uses the index + 1.
The easiest way to get the gtag
command is through cargo. Just run cargo install gtag
.