Root/bin/purge

Source at commit 3f820dc41d82c78d972efe3c69f139f209a742f9 created 9 years 13 days ago.
By Werner Almesberger, cad/test2/README: added more results and cleaned up the text
1#!/bin/sh
2if [ "$1" ]; then
3    cd "$1" || exit
4fi
5git ls-files -m | grep '.pro$' |
6    while read n; do
7    if ! [ "`git diff "$n" |
8      sed '/^--- /d;/^+++ /d;/^[^-+]/d;/^.update=/d'`" ]; then
9        echo purging "$n" 1>&2
10        git checkout "$n"
11    fi
12    done
13

Archive Download this file

Branches:
master



interactive