esl/edown — pull request #14 by beadsland (2012-04-28 22:33:00+00:00)
Title: eliminated awk dependency

The commandline invocation of awk in get_git_branch/0 makes sense for UNIX development environments, where awk is guaranteed to be on the PATH, but not on Windows/cygwin setups.

Replacing the pipe to awk with a string:tokens() call has the added advantage of stripping the unneeded carriage return, thereby simplifying the subsequent code.