title: List submodules in a Git repository
body: <p>I have a Git repository that has several submodules in it. How do I list the names of all the submodules after <code>git submodule init</code> has been run?</p>
  
  <p>The <code>git submodule foreach</code> command could echo the names of the submodule, but that only works once they have been checked out which has not happened after the init step. There are more steps in the chain that need to happen before they can be checked out, and I don't want to have to hard-wire names of submodules into the script. </p>
  
  <p>So is there a Git command to get the names of all currently registered, but not yet checked out submodules?</p>