list-git-modules 145 B

1234567
  1. #!/bin/sh
  2. if [[ -e .gitmodules ]] ; then
  3. cat .gitmodules | \
  4. grep "^\[.*\]$" | \
  5. sed "s/\[submodule \"\\(.*\\)\"\]/\1/g"
  6. fi