Last active
January 30, 2017 21:12
-
-
Save mcjwsk/45368174f1a4fdca81bc32745c6048cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
base_dir="$PWD" | |
changed_modules=$(git submodule summary | grep '^*' | cut -d ' ' -f 2,3) | |
echo "$changed_modules" | while read dir commits; do | |
cd "$dir" | |
git diff --name-only "$commits" | sed -e "s#^#$dir/#g" | |
cd "$base_dir" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment