summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/which-commands-changed12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/which-commands-changed b/scripts/which-commands-changed
new file mode 100755
index 00000000..62a48593
--- /dev/null
+++ b/scripts/which-commands-changed
@@ -0,0 +1,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