From 526fc0cefff0403ada331042437560119ae91fd6 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 7 Nov 2009 15:02:53 +0100 Subject: add option to drop patch-queue branch --- examples/gbp-pq | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/examples/gbp-pq b/examples/gbp-pq index 93ebc45f..035412ab 100755 --- a/examples/gbp-pq +++ b/examples/gbp-pq @@ -83,6 +83,20 @@ pq_import() QUILT_PATCHES=$patches git quiltimport } +pq_drop() +{ + local branch=$1 + local pq="patch-queue/$branch" + + if is_patch_queue $branch; then + echo "On a patch-queue branch, can't drop it." + return 1 + else + git branch -D ${pq} + echo "Dropped ${pq}." + fi +} + usage () { cat <