Using git state instead of cmd one

This change reimplements the functionality using git state instead
of cmd state.

Change-Id: Ia073d066bef550f6c93ab91c4924a184879cebb3
1 file changed