completion: factor out _git_xxx calling code