MCPcopy Index your code
hub / github.com/git/git / currentGitBranch

Function currentGitBranch

git-p4.py:985–986  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

983
984
985def currentGitBranch():
986 return read_pipe_text(["git", "symbolic-ref", "--short", "-q", "HEAD"])
987
988
989def isValidGitDir(path):

Callers 2

runMethod · 0.85
runMethod · 0.85

Calls 1

read_pipe_textFunction · 0.85

Tested by

no test coverage detected