summaryrefslogtreecommitdiffstats
path: root/t/lib-rebase.sh
diff options
context:
space:
mode:
authorMartin von Zweigbergk <martinvonz@gmail.com>2013-06-07 08:11:38 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-07 18:41:11 +0200
commit5b5e1c7c7875bcaed7e640dd0d33de3dbe87e1bb (patch)
treeb5d9a3f141c55e6a534ed1a400f6a90159aafba3 /t/lib-rebase.sh
parentadd simple tests of consistency across rebase types (diff)
downloadgit-5b5e1c7c7875bcaed7e640dd0d33de3dbe87e1bb.tar.xz
git-5b5e1c7c7875bcaed7e640dd0d33de3dbe87e1bb.zip
add tests for rebasing with patch-equivalence present
Signed-off-by: Martin von Zweigbergk <martinvonz@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-rebase.sh')
-rw-r--r--t/lib-rebase.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/lib-rebase.sh b/t/lib-rebase.sh
index 1e0ff285a6..4b74ae460b 100644
--- a/t/lib-rebase.sh
+++ b/t/lib-rebase.sh
@@ -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"
+}