parameters: (tagName='HEAD', baseRef='')
docstring: calculate git commit counts
docstring_summary: calculate git commit counts
docstring_tokens: calculate git commit counts
function: def _GitCommitCount(tagName='HEAD', baseRef=''):
      """calculate git commit counts"""
      repo = _GetRepository()
      if not baseRef:
          return len(list(repo.iter_commits(tagName)))
      else:
          return len(list(repo.iter_commits(baseRef + '..' + tagName)))
function_tokens: def _GitCommitCount ( tagName = 'HEAD' , baseRef = '' ) : repo = _GetRepository ( ) if not baseRef : return len ( list ( repo . iter_commits ( tagName ) ) ) else : return len ( list ( repo . iter_commits ( baseRef + '..' + tagName ) ) )