You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Gets the -gc0ffee or .gc0ffee suffix for the version.
441
+
/// Gets the -{<seealso cref="VersionOptions.GitCommitIdPrefix"/>}c0ffee or .<seealso cref="VersionOptions.GitCommitIdPrefix"/>c0ffee suffix for the version.
442
442
/// </summary>
443
443
/// <remarks>
444
-
/// The `g` prefix to the commit ID is to remain SemVer2 compliant particularly when the partial commit ID we use is made up entirely of numerals.
445
-
/// SemVer2 forbids numerals to begin with leading zeros, but a git commit just might, so we begin with `g` always to avoid failures when the commit ID happens to be problematic.
444
+
/// The prefix to the commit ID is to remain SemVer2 compliant particularly when the partial commit ID we use is made up entirely of numerals.
445
+
/// SemVer2 forbids numerals to begin with leading zeros, but a git commit just might, so we begin with prefix always to avoid failures when the commit ID happens to be problematic.
Copy file name to clipboardExpand all lines: src/NerdBank.GitVersioning/version.schema.json
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,12 @@
79
79
"default": 10,
80
80
"maximum": 40
81
81
},
82
+
"gitCommitIdPrefix": {
83
+
"type": "string",
84
+
"description": "The git commit prefix (e.g. 'g') in prerelease versions",
85
+
"pattern": "^[^0-9][\\da-z\\-_\\.]*$",
86
+
"default": "g"
87
+
},
82
88
"gitCommitIdShortAutoMinimum": {
83
89
"type": "integer",
84
90
"description": "When greater than 0, the length of the commit ID will be either this value or the shortest unambiguous git-abbreviated commit ID possible, whichever is greater. When 0, the gitCommitIdShortFixedLength property is used instead.",
0 commit comments