We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac1cb7a commit 772286aCopy full SHA for 772286a
git-pr
@@ -0,0 +1,11 @@
1
+#!/usr/bin/env bash
2
+# Based on https://gist.github.com/gnarf/5406589
3
+
4
+if test "$1" = "clean"; then
5
+ git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref; do
6
+ git branch -D ${ref#refs/heads/}
7
+ done
8
+else
9
+ test -z $1 && echo "pr number required." 1>&2 && exit 1
10
+ git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1
11
+fi
git-pulltree
@@ -0,0 +1,2 @@
+#!/bin/bash
+git subtree pull --prefix $1 ext/$(basename $1) master --squash
0 commit comments