From 2908b56def41dbb385b115f8586302d1b9166235 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Mon, 13 Aug 2018 13:35:19 +0300 Subject: [PATCH] Change bump shell script to git bump, also pushes tags to all remotes. --- .bashrc | 6 ------ Documents/bin/git-bump | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100755 Documents/bin/git-bump diff --git a/.bashrc b/.bashrc index 736e5ae..ac1243e 100644 --- a/.bashrc +++ b/.bashrc @@ -200,12 +200,6 @@ ddg () { lynx "https://duckduckgo.com/lite/?q=$(urlencode "$@")" } -bump () { - semver-bump "$1-release" && \ - git commit VERSION -m"- Bumped $1 version." && \ - git tag-version -} - toux () { touch "$@" chmod +x "$@" diff --git a/Documents/bin/git-bump b/Documents/bin/git-bump new file mode 100755 index 0000000..9d56c93 --- /dev/null +++ b/Documents/bin/git-bump @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +semver-bump "$1-release" +git commit VERSION -m "Bumped $1 version." +git tag-version +git pushes --tags -- GitLab