Crates.io | gtag |
lib.rs | gtag |
version | 0.3.0 |
source | src |
created_at | 2016-01-24 22:30:18.646441 |
updated_at | 2016-01-30 14:51:12.169318 |
description | The missing range tag command for Git |
homepage | |
repository | https://github.com/thoughtram/gtag |
max_upload_size | |
id | 3982 |
size | 6,274 |
The missing git command to rapidly create tags from commit ranges.
USAGE:
gtag [FLAGS] <range> <pattern>
FLAGS:
-d, --delete Deletes generated tags
--dryrun Just prints what it would do
-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
.