summaryrefslogtreecommitdiffstats
path: root/supercherry
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-23 21:51:36 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-10-23 21:51:36 +0200
commit523b47ba579089de73958e3459b1d12bd4628486 (patch)
tree2c38cdefe65d854088b6c3b04a3e5abea9321cb9 /supercherry
parent6ad11bc11c499cb83db71f9ec0b2fc7816947ce6 (diff)
downloadbin-523b47ba579089de73958e3459b1d12bd4628486.tar.gz
bin-523b47ba579089de73958e3459b1d12bd4628486.tar.xz
add some scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'supercherry')
-rwxr-xr-xsupercherry31
1 files changed, 31 insertions, 0 deletions
diff --git a/supercherry b/supercherry
new file mode 100755
index 0000000..68eac96
--- /dev/null
+++ b/supercherry
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+base="master"
+
+RED="\e[1;31m"
+GREEN="\e[0;32m"
+YELLOW="\e[0;33m"
+BLUE="\e[1;34m"
+PURPLE="\e[0;35m"
+GRAY="\e[0;37m"
+NONE="\e[0;0m"
+
+
+for ref in $(git for-each-ref --format='%(refname)' refs/remotes); do
+ sha1="$(git rev-parse --verify $ref)"
+ if [ "$(git merge-base $ref $base)" = "$sha1" ]; then
+ continue
+ fi
+ echo -e "$sha1: ${RED}${ref}${NONE}"
+ git cherry -v $base $ref | while read line; do
+ case $line in
+ +*)
+ echo -e $BLUE$line$NONE
+ ;;
+ -*)
+ echo -e $GRAY$line$NONE
+ ;;
+ esac
+ done
+ echo
+done \ No newline at end of file