ansible/ansible — pull request #805 by willthames (2012-08-08 10:13:14+00:00)
Title: Added git information to version string

Running ansible --version now outputs git information when the gitpython
library is installed (through e.g. `easy_install gitpython`) and the git
repo lives in .git in the root of the ansible source (coping with the case
where the git info is elsewhere is left as an exercise).

This works quite slowly, but will only affect people with gitpython installed.
I would have liked to have only output the gitinfo but that would involve
adding new flags (e.g. --gitversion) and updating ansible and
ansible-playbook. Unfortunately I don't think you can use the values of
other options with --version (so you can't do --version --verbose).