bulk-update-subtrees.sh 409 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. if [ "$(git rev-parse --show-prefix)" != "" ]; then
  4. echo "Must be in root of git repo!"
  5. exit
  6. fi
  7. shopt -s globstar
  8. for file in **/.gitsubtree; do
  9. subtree="$(dirname "${file}")"
  10. echo -e "\n\nUpdating ${subtree}..."
  11. bash .utils/update-subtree.sh "${subtree}"
  12. done
  13. notify-send -a Git -i git "Subtree bulk update finished" "Double check merge commits" &> /dev/null | true