From ab79d84c044931aef2823874c52f453bcc53bec3 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 12 Mar 2013 07:38:18 -0400 Subject: [PATCH] givi - Print list of known repositories on help screen --- bin/givi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/givi b/bin/givi index 1f8dec241e..71fba56de6 100755 --- a/bin/givi +++ b/bin/givi @@ -217,6 +217,10 @@ class Givi { echo " --joomla=X: Specify the branch to use on the joomla repository\n"; echo " --wordpress=X: Specify the branch to use on the wordpress repository\n"; echo " --rebase: Perform a rebase before starting work\n"; + echo "Known repositories:\n"; + foreach ($this->repos as $repo => $relPath) { + printf(" %-12s: %s\n", $repo, realpath($this->civiRoot . DIRECTORY_SEPARATOR . $relPath)); + } echo "When using 'begin' or 'resume' with a remote base-branch, most repositories\n"; echo "will have a detached HEAD. Only repos with an explicit branch will be real,\n"; echo "local branches.\n"; -- 2.25.1