Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/remote.inc.sh
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-07-31 11:40:58 -0400
committerDave Reisner <dreisner@archlinux.org>2014-07-31 11:40:58 -0400
commit0e2dbae33a788c92e1bcb3b4883d5be7ce2281be (patch)
tree579b2a0de0231abd53e87343ffd1633e08f67ee5 /remote.inc.sh
parent2b7f3111546b0e6c364d23bcb15269f2b5dcf1a1 (diff)
add 'untrack' verb
Diffstat (limited to 'remote.inc.sh')
-rw-r--r--remote.inc.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/remote.inc.sh b/remote.inc.sh
index b125419..d2521bb 100644
--- a/remote.inc.sh
+++ b/remote.inc.sh
@@ -48,3 +48,9 @@ remote_get_url() {
git ls-remote --get-url "$remote"
}
+
+remote_untrack() {
+ local remote=$1 pkgname=$2
+
+ git branch -dr "$remote/packages/$pkgname"
+}