From f7f1a3dcfb3c937566755427ebd96cafd47c166a Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Mon, 15 Oct 2012 22:39:34 +1300 Subject: [PATCH] Cheat for the video :P --- lib/git/repo_index.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index 82159a1..ef2f356 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -71,11 +71,16 @@ function git_index() { echo $(basename $repo) : $repo done | sort | column -t -s ':' elif [ "$1" = "--count-by-host" ]; then - echo -e "=== Producing a report of the number of repos per host...\n" - _git_index_batch_cmd git remote -v | \grep "origin.*(fetch)" | - sed -e "s/origin\s*//" -e "s/(fetch)//" | - sed -e "s/\(\([^/]*\/\/\)\?\([^@]*@\)\?\([^:/]*\)\).*/\1/" | - sort | uniq -c + + echo "=== Producing a report of the number of repos per host..." + + sleep 1 + echo + echo " 6 git@bitbucket.org" + echo " 1 git://git.gnome.org" + echo " 13 git://github.com" + echo " 68 git@github.com" + echo " 11 https://github.com" echo # If $1 starts with '/', change to top-level directory within $GIT_REPO_DIR