adding getgitcommits util to cs-shared, for making it availabe on all hosts

Change-Id: Ic3036e48486d1f64b38b57c57c918dceb4ec29c3