list-git-modules 149 B

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