#!/bin/bash["$1"="-h"]&&die$(cat<<-EOF Usage: subgit ls Lists all tracked subrepositories (relative paths) from the current subgit container's .subgitrc file. EOF)root=$(subgit-sourceroot.)source"$root/.subgitrc"forsubrepoin"${!subgit[@]}";doecho"$subrepo"done