bulk-update-subtrees.sh 391 B

123456789101112131415
  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. for file in **/.gitsubtree; do
  8. subtree="$(dirname "${file}")"
  9. echo -e "\n\nUpdating ${subtree}..."
  10. bash .utils/update-subtree.sh "${subtree}"
  11. done
  12. notify-send -a Git -i git "Subtree bulk update finished" "Double check merge commits" &> /dev/null | true