summaryrefslogtreecommitdiff
path: root/git-rewrite-branch--appendid
diff options
context:
space:
mode:
Diffstat (limited to 'git-rewrite-branch--appendid')
-rwxr-xr-xgit-rewrite-branch--appendid4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-rewrite-branch--appendid b/git-rewrite-branch--appendid
new file mode 100755
index 0000000..e44180a
--- /dev/null
+++ b/git-rewrite-branch--appendid
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+tag=$1
+sed '$a'"${tag}: ${GIT_COMMIT}"