forked from OctoPrint/OctoPrint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified versioneer to allow specification of manual versions based o…
…n branches You can now define a lookup file explicitely mapping virtual version tags to branches via regular expressions and a reference commit from which the commit distance will be calculated. Format of the file is <branch-regex> <tag> <reference commit> The file is processed from top to bottom, the first matching line wins. If <tag> or <reference commit> are left out, the lookup table does not apply to the matched branches and the regular versioneer resolution (via git describe) takes place. Current configuration makes "master", "staging" and any branch starting with "fix/" make use the default behaviour, all other branches (so basically all development branches) are defined as "1.2.0-dev" (cherry picked from commit 212f40c)
- Loading branch information
Showing
4 changed files
with
304 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Configuration file for the versioneer lookup, manually mapping tags based on branches | ||
# | ||
# Format is | ||
# | ||
# <branch-regex> <tag> <reference commit> | ||
# | ||
# The file is processed from top to bottom, the first matching line wins. If <tag> or <reference commit> are left out, | ||
# the lookup table does not apply to the matched branches | ||
|
||
# master and staging shall not use the lookup table | ||
master | ||
staging | ||
|
||
# fix/ branches are fixes for master, so we don't handle those either | ||
fix/.* | ||
|
||
# every other branch is a development branch and thus gets resolved to 1.2.0-dev for now | ||
.* 1.2.0-dev 50cf776e70b9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.