@@ -71,16 +71,11 @@ function git_index() {
|
|||||||
echo $(basename $repo) : $repo
|
echo $(basename $repo) : $repo
|
||||||
done | sort | column -t -s ':'
|
done | sort | column -t -s ':'
|
||||||
elif [ "$1" = "--count-by-host" ]; then
|
elif [ "$1" = "--count-by-host" ]; then
|
||||||
|
echo -e "=== Producing a report of the number of repos per host...\n"
|
||||||
echo "=== Producing a report of the number of repos per host..."
|
_git_index_batch_cmd git remote -v | \grep "origin.*(fetch)" |
|
||||||
|
sed -e "s/origin\s*//" -e "s/(fetch)//" |
|
||||||
sleep 1
|
sed -e "s/\(\([^/]*\/\/\)\?\([^@]*@\)\?\([^:/]*\)\).*/\1/" |
|
||||||
echo
|
sort | uniq -c
|
||||||
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
|
echo
|
||||||
|
|
||||||
# If $1 starts with '/', change to top-level directory within $GIT_REPO_DIR
|
# If $1 starts with '/', change to top-level directory within $GIT_REPO_DIR
|
||||||
|
|||||||
Reference in New Issue
Block a user