Root/bin/purge

Source at commit ba5a392555fd70c6f668f0d9750791f9b35eb179 created 8 years 19 days ago.
By Werner Almesberger, m1/tools/README: m1nor description
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