Skip to content

Commit d6a0e3f

Browse files
committed
Release v1.22.0
1 parent af5370b commit d6a0e3f

File tree

3 files changed

+49
-7
lines changed

3 files changed

+49
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## v1.22.0 (2024-08-07)
22

33
* Fixed: The `--ignore-untracked` CLI flag was ignored.
44
* Added: `--commit-length` option.

docs/dunamai.1

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH DUNAMAI "1" "2024\-07\-26" "dunamai 1.21.2" "Dunamai"
1+
.TH DUNAMAI "1" "2024\-08\-07" "dunamai 1.22.0" "Dunamai"
22
.SH NAME
33
dunamai
44
.SH SYNOPSIS
@@ -26,8 +26,9 @@ usage: dunamai from any [\-h] [\-\-metadata] [\-\-no\-metadata] [\-\-dirty]
2626
[\-\-pattern PATTERN] [\-\-pattern\-prefix PATTERN_PREFIX]
2727
[\-\-format FORMAT] [\-\-style {pep440,semver,pvp}]
2828
[\-\-latest\-tag] [\-\-strict] [\-\-path PATH] [\-\-debug]
29-
[\-\-bump] [\-\-full\-commit] [\-\-tag\-branch TAG_BRANCH]
30-
[\-\-tag\-dir TAG_DIR]
29+
[\-\-bump] [\-\-full\-commit]
30+
[\-\-commit\-length COMMIT_LENGTH]
31+
[\-\-tag\-branch TAG_BRANCH] [\-\-tag\-dir TAG_DIR]
3132

3233
Generate version from any detected VCS
3334

@@ -110,6 +111,10 @@ there was no `revision` Does nothing when on a commit with a version tag.
110111
\fB\-\-full\-commit\fR
111112
Get the full commit hash instead of the short form (only: Git, Mercurial)
112113

114+
.TP
115+
\fB\-\-commit\-length\fR \fI\,COMMIT_LENGTH\/\fR
116+
Use this many characters from the start of the full commit hash
117+
113118
.TP
114119
\fB\-\-tag\-branch\fR \fI\,TAG_BRANCH\/\fR
115120
Branch on which to find tags, if different than the current branch (only: Git)
@@ -127,7 +132,9 @@ usage: dunamai from git [\-h] [\-\-metadata] [\-\-no\-metadata] [\-\-dirty]
127132
[\-\-pattern PATTERN] [\-\-pattern\-prefix PATTERN_PREFIX]
128133
[\-\-format FORMAT] [\-\-style {pep440,semver,pvp}]
129134
[\-\-latest\-tag] [\-\-strict] [\-\-path PATH] [\-\-debug]
130-
[\-\-bump] [\-\-full\-commit] [\-\-tag\-branch TAG_BRANCH]
135+
[\-\-bump] [\-\-full\-commit]
136+
[\-\-commit\-length COMMIT_LENGTH]
137+
[\-\-tag\-branch TAG_BRANCH]
131138

132139
Generate version from Git
133140

@@ -210,6 +217,10 @@ there was no `revision` Does nothing when on a commit with a version tag.
210217
\fB\-\-full\-commit\fR
211218
Get the full commit hash instead of the short form (only: Git, Mercurial)
212219

220+
.TP
221+
\fB\-\-commit\-length\fR \fI\,COMMIT_LENGTH\/\fR
222+
Use this many characters from the start of the full commit hash
223+
213224
.TP
214225
\fB\-\-tag\-branch\fR \fI\,TAG_BRANCH\/\fR
215226
Branch on which to find tags, if different than the current branch (only: Git)
@@ -224,6 +235,7 @@ usage: dunamai from mercurial [\-h] [\-\-metadata] [\-\-no\-metadata] [\-\-dirty
224235
[\-\-format FORMAT] [\-\-style {pep440,semver,pvp}]
225236
[\-\-latest\-tag] [\-\-strict] [\-\-path PATH]
226237
[\-\-debug] [\-\-bump] [\-\-full\-commit]
238+
[\-\-commit\-length COMMIT_LENGTH]
227239

228240
Generate version from Mercurial
229241

@@ -300,6 +312,10 @@ there was no `revision` Does nothing when on a commit with a version tag.
300312
.TP
301313
\fB\-\-full\-commit\fR
302314
Get the full commit hash instead of the short form (only: Git, Mercurial)
315+
316+
.TP
317+
\fB\-\-commit\-length\fR \fI\,COMMIT_LENGTH\/\fR
318+
Use this many characters from the start of the full commit hash
303319
.RE
304320

305321
.SS \fBdunamai from darcs\fR
@@ -310,6 +326,7 @@ usage: dunamai from darcs [\-h] [\-\-metadata] [\-\-no\-metadata] [\-\-dirty]
310326
[\-\-pattern\-prefix PATTERN_PREFIX] [\-\-format FORMAT]
311327
[\-\-style {pep440,semver,pvp}] [\-\-latest\-tag]
312328
[\-\-strict] [\-\-path PATH] [\-\-debug] [\-\-bump]
329+
[\-\-commit\-length COMMIT_LENGTH]
313330

314331
Generate version from Darcs
315332

@@ -382,6 +399,10 @@ Display additional information on stderr for troubleshooting
382399
Increment the last part of the version `base` by 1, unless the `stage` is set,
383400
in which case increment the `revision` by 1 or set it to a default of 2 if
384401
there was no `revision` Does nothing when on a commit with a version tag.
402+
403+
.TP
404+
\fB\-\-commit\-length\fR \fI\,COMMIT_LENGTH\/\fR
405+
Use this many characters from the start of the full commit hash
385406
.RE
386407

387408
.SS \fBdunamai from subversion\fR
@@ -392,7 +413,9 @@ usage: dunamai from subversion [\-h] [\-\-metadata] [\-\-no\-metadata] [\-\-dirt
392413
[\-\-pattern\-prefix PATTERN_PREFIX]
393414
[\-\-format FORMAT] [\-\-style {pep440,semver,pvp}]
394415
[\-\-latest\-tag] [\-\-strict] [\-\-path PATH]
395-
[\-\-debug] [\-\-bump] [\-\-tag\-dir TAG_DIR]
416+
[\-\-debug] [\-\-bump]
417+
[\-\-commit\-length COMMIT_LENGTH]
418+
[\-\-tag\-dir TAG_DIR]
396419

397420
Generate version from Subversion
398421

@@ -466,6 +489,10 @@ Increment the last part of the version `base` by 1, unless the `stage` is set,
466489
in which case increment the `revision` by 1 or set it to a default of 2 if
467490
there was no `revision` Does nothing when on a commit with a version tag.
468491

492+
.TP
493+
\fB\-\-commit\-length\fR \fI\,COMMIT_LENGTH\/\fR
494+
Use this many characters from the start of the full commit hash
495+
469496
.TP
470497
\fB\-\-tag\-dir\fR \fI\,TAG_DIR\/\fR
471498
Location of tags relative to the root (only: Subversion)
@@ -479,6 +506,7 @@ usage: dunamai from bazaar [\-h] [\-\-metadata] [\-\-no\-metadata] [\-\-dirty]
479506
[\-\-pattern\-prefix PATTERN_PREFIX] [\-\-format FORMAT]
480507
[\-\-style {pep440,semver,pvp}] [\-\-latest\-tag]
481508
[\-\-strict] [\-\-path PATH] [\-\-debug] [\-\-bump]
509+
[\-\-commit\-length COMMIT_LENGTH]
482510

483511
Generate version from Bazaar
484512

@@ -551,6 +579,10 @@ Display additional information on stderr for troubleshooting
551579
Increment the last part of the version `base` by 1, unless the `stage` is set,
552580
in which case increment the `revision` by 1 or set it to a default of 2 if
553581
there was no `revision` Does nothing when on a commit with a version tag.
582+
583+
.TP
584+
\fB\-\-commit\-length\fR \fI\,COMMIT_LENGTH\/\fR
585+
Use this many characters from the start of the full commit hash
554586
.RE
555587

556588
.SS \fBdunamai from fossil\fR
@@ -561,6 +593,7 @@ usage: dunamai from fossil [\-h] [\-\-metadata] [\-\-no\-metadata] [\-\-dirty]
561593
[\-\-pattern\-prefix PATTERN_PREFIX] [\-\-format FORMAT]
562594
[\-\-style {pep440,semver,pvp}] [\-\-latest\-tag]
563595
[\-\-strict] [\-\-path PATH] [\-\-debug] [\-\-bump]
596+
[\-\-commit\-length COMMIT_LENGTH]
564597

565598
Generate version from Fossil
566599

@@ -633,6 +666,10 @@ Display additional information on stderr for troubleshooting
633666
Increment the last part of the version `base` by 1, unless the `stage` is set,
634667
in which case increment the `revision` by 1 or set it to a default of 2 if
635668
there was no `revision` Does nothing when on a commit with a version tag.
669+
670+
.TP
671+
\fB\-\-commit\-length\fR \fI\,COMMIT_LENGTH\/\fR
672+
Use this many characters from the start of the full commit hash
636673
.RE
637674

638675
.SS \fBdunamai from pijul\fR
@@ -643,6 +680,7 @@ usage: dunamai from pijul [\-h] [\-\-metadata] [\-\-no\-metadata] [\-\-dirty]
643680
[\-\-pattern\-prefix PATTERN_PREFIX] [\-\-format FORMAT]
644681
[\-\-style {pep440,semver,pvp}] [\-\-latest\-tag]
645682
[\-\-strict] [\-\-path PATH] [\-\-debug] [\-\-bump]
683+
[\-\-commit\-length COMMIT_LENGTH]
646684

647685
Generate version from Pijul
648686

@@ -715,6 +753,10 @@ Display additional information on stderr for troubleshooting
715753
Increment the last part of the version `base` by 1, unless the `stage` is set,
716754
in which case increment the `revision` by 1 or set it to a default of 2 if
717755
there was no `revision` Does nothing when on a commit with a version tag.
756+
757+
.TP
758+
\fB\-\-commit\-length\fR \fI\,COMMIT_LENGTH\/\fR
759+
Use this many characters from the start of the full commit hash
718760
.RE
719761

720762
.SS \fBdunamai check\fR

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dunamai"
3-
version = "1.21.2"
3+
version = "1.22.0"
44
description = "Dynamic version generation"
55
license = "MIT"
66
authors = ["Matthew T. Kennerly <mtkennerly@gmail.com>"]

0 commit comments

Comments
 (0)