scm: git: add methods of getting git version and add unit lib test (#4273).
Authored by: tmaruyama 2011-02-15
Parent: [r4828]
Child: [r4830]