I am writing some jazzy code which needs to determine the current branch name programatically. I don't want to take a dependency on any git executables, I just want to look in the .git directory.
Can I just inspect the .git/HEAD file?
I am writing some jazzy code which needs to determine the current branch name programatically. I don't want to take a dependency on any git executables, I just want to look in the .git directory.
Can I just inspect the .git/HEAD file?