summaryrefslogtreecommitdiffstats
path: root/scripts/which-commands-changed
blob: 62a48593b967d26e5c1d82adaece97e77e0e4ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

# Find all imag commands which changed since last install

imag versions   |\
grep "imag-"    |\
sed 's,v.*-g,,' |\
while read binary hash; do
    git diff "$hash..master" --name-only | \
    grep "$binary" >/dev/null 2>/dev/null && \
    echo "$binary changed since last install (was $hash)"
done