git-remote-mediawiki: do not remove installed files in "clean" target
[gitweb.git] / t / lib-rebase.sh
index 1e0ff285a625b3eec2a054f34c41aaab9dd59754..4b74ae460b8943c176b6563d374e1663f89a1d7b 100644 (file)
@@ -81,3 +81,20 @@ reset_rebase () {
        git reset --hard &&
        git clean -f
 }
+
+cherry_pick () {
+       git cherry-pick -n "$2" &&
+       git commit -m "$1" &&
+       git tag "$1"
+}
+
+revert () {
+       git revert -n "$2" &&
+       git commit -m "$1" &&
+       git tag "$1"
+}
+
+make_empty () {
+       git commit --allow-empty -m "$1" &&
+       git tag "$1"
+}