version: add git_user_agent function