Skip to content

Commit

Permalink
refactor: change versioning schema
Browse files Browse the repository at this point in the history
New versioning schema: "r<commit count on the main branch>.<latest commit hash on the main branch>"
  • Loading branch information
CodesOfRishi committed Jan 16, 2022
1 parent 3284f58 commit 191cfc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feats/info.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Feature: Print version information.

export SMARTCD_VERSION="v4.1.0"
SMARTCD_VERSION="r$( git --git-dir="${SMARTCD_ROOT}"/.git rev-list --count main ).$( git --git-dir="${SMARTCD_ROOT}"/.git rev-parse --short main )" \
&& export SMARTCD_VERSION
export SMARTCD_VERSION_OPT=${SMARTCD_VERSION_OPT-"-v --version"} # option for printing version information

__smartcd::version_info() {
Expand Down

0 comments on commit 191cfc4

Please sign in to comment.