public/git/Get-PSTSGitRepository.ps1

function Get-PSTSGitRepository
{
    param(
         [Parameter(Mandatory=$true)][string] $project
    )

    process {
        $content = `
        _PSTSAPI `
            -resource "git/repositories" `
            -method "GET" `
            -project $project

        return [GitRepository[]]$content.value
    }
}