2023-11-26 21:04:58 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash --pure
|
|
|
|
#! nix-shell -p bash git gnugrep coreutils findutils
|
2018-11-24 13:45:14 +01:00
|
|
|
|
|
|
|
# From https://stackoverflow.com/a/2083563
|
|
|
|
|
|
|
|
git diff --summary | grep --color 'mode change 100755 => 100644' | cut -d' ' -f7- | xargs -d'\n' chmod +x
|
|
|
|
git diff --summary | grep --color 'mode change 100644 => 100755' | cut -d' ' -f7- | xargs -d'\n' chmod -x
|