Skip to content

Commit

Permalink
Add script to make a queue of patches from the active git branch
Browse files Browse the repository at this point in the history
  • Loading branch information
staktrace committed Jan 19, 2012
1 parent bd4f446 commit 27714d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions make-queue
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

QUEUE=${1?"Usage: $0 <queue-name>"}

NUMPATCHES=$(git log master..HEAD --oneline | cut -d " " -f 1 | wc -l)
NUMPATCHES=$((NUMPATCHES))
for i in $(git log master..HEAD --oneline | cut -d " " -f 1); do
git hgp $i > ~/zspace/patches/$QUEUE-$NUMPATCHES
NUMPATCHES=$((NUMPATCHES - 1))
done

0 comments on commit 27714d2

Please sign in to comment.