about summary refs log tree commit diff
path: root/overlays/patches/emacs/overlay/update
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/emacs/overlay/update')
-rwxr-xr-xoverlays/patches/emacs/overlay/update8
1 files changed, 8 insertions, 0 deletions
diff --git a/overlays/patches/emacs/overlay/update b/overlays/patches/emacs/overlay/update
new file mode 100755
index 000000000000..39aa0cd5847a
--- /dev/null
+++ b/overlays/patches/emacs/overlay/update
@@ -0,0 +1,8 @@
+#!/usr/bin/env nix-shell
+#! nix-shell -i bash -p bash git
+
+for repo in repos/*; do
+    $repo/update && (git diff --exit-code $repo > /dev/null || git commit -m "Updated $repo" -- $repo)
+done
+
+exit 0