list-git-modules 162 B

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