MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / parse_branch_ref

Function parse_branch_ref

tensorflow/tools/git/gen_git_source.py:37–62  ·  view source on GitHub ↗

Given a filename of a .git/HEAD file return ref path. In particular, if git is in detached head state, this will return None. If git is in attached head, it will return the branch reference. E.g. if on 'master', the HEAD will contain 'ref: refs/heads/master' so 'refs/heads/master' will be

(filename)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

configureFunction · 0.85
generateFunction · 0.85

Calls 3

stripMethod · 0.80
readMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected