diff options
| author | Jeff Carr <[email protected]> | 2025-03-25 21:35:17 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-25 21:35:17 -0500 |
| commit | 672e567aa124d43dbd0c28267584db940df8b435 (patch) | |
| tree | 8d8d70298aa2ca6abfc803f91b457a7698d103bf | |
| parent | 6a88e3bdeff620908a9e29bbdd6f739ffde616e7 (diff) | |
| -rw-r--r-- | argv.go | 1 | ||||
| -rw-r--r-- | main.go | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -14,6 +14,7 @@ type args struct { RepoPath string `arg:"--repo" default:"./" help:"path to the .git repo"` Hostname string `arg:"--hostname" help:"hostname to use"` Refs bool `arg:"--refs" help:"list the git ref hashes"` + Tag string `arg:"--tag" help:"what tag name to walk"` } func (args) Version() string { @@ -38,7 +38,9 @@ func main() { showtags(repo) // v0.0.8 - printCommitsForTag(repo, "v0.22.2") + if argv.Tag != "" { + printCommitsForTag(repo, argv.Tag) + } } // lists the files in the git repo |
