Add git_snpath: a .git path formatting routine with output buffer