From 09b06e0072078586e3bf93116f725acccd53d725 Mon Sep 17 00:00:00 2001 From: Adam Baldwin Date: Thu, 23 Jun 2011 19:50:31 -0700 Subject: [PATCH] initial commit of gitpillage tool --- gitpillage.sh | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100755 gitpillage.sh diff --git a/gitpillage.sh b/gitpillage.sh new file mode 100755 index 0000000..6b3b83e --- /dev/null +++ b/gitpillage.sh @@ -0,0 +1,122 @@ +#!/bin/bash + +if [[ -z $1 ]]; then + cat<&1 |grep "^error:"|awk '{print $5}'` + if [ "$file" == "$prev" ] + then + break + fi + getsha $file +done + +#8 - try and checkout files. It's not perfect, but you might get lucky +for line in `git ls-files` +do + git checkout $line +done