Clean up and document git_info() function