mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-24 22:33:55 +02:00
13 lines
255 B
Plaintext
13 lines
255 B
Plaintext
|
#!/bin/sh
|
||
|
if [ "$1" ]; then
|
||
|
cd "$1" || exit
|
||
|
fi
|
||
|
git ls-files -m | grep '.pro$' |
|
||
|
while read n; do
|
||
|
if ! [ "`git diff "$n" |
|
||
|
sed '/^--- /d;/^+++ /d;/^[^-+]/d;/^.update=/d'`" ]; then
|
||
|
echo purging "$n" 1>&2
|
||
|
git checkout "$n"
|
||
|
fi
|
||
|
done
|