From 95e3c870a75dcbd94c5672f16346e652ace086c9 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 13 Jul 2017 12:08:56 +0300
Subject: [PATCH] - Added bump shell function to codify the version bump
 process.

---
 .bashrc    | 6 ++++++
 .gitconfig | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.bashrc b/.bashrc
index 082ea2c..18df409 100644
--- a/.bashrc
+++ b/.bashrc
@@ -162,5 +162,11 @@ ddg () {
     lynx "https://duckduckgo.com/lite/?q=$(echo "$@" | urlencode)"
 }
 
+bump () {
+    semver-bump "$1-release" && \
+    git commit VERSION -m"- Bumped $1 version." && \
+    git tag-version
+}
+
 # shellcheck disable=SC1090
 . "$HOME/Documents/Shore/bundle_certs/bundle_certs"
diff --git a/.gitconfig b/.gitconfig
index c142db6..5c88fd6 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -19,7 +19,7 @@
     serve-http = !git update-server-info && cd .git && python -m SimpleHTTPServer
     staash = stash --all
     stat = status --short --branch
-    tag-version = !git tag -af "v$(cat VERSION)"
+    tag-version = !git tag --annotate --force --message "v$(cat VERSION)" "v$(cat VERSION)"
     tracking = rev-parse --abbrev-ref --symbolic-full-name @{upstream}
     trigger = !git commit --allow-empty --no-edit --amend && git push --force-with-lease
     update-requirements = !git stash save -a -u -q && ( git ls-files '*requirements*.txt' | xargs -n1 pur -r ) && ( git commit -a -m '- Updated requirements.' || echo 'No requirements updated.' ) && git stash pop
-- 
GitLab