Add some missing git helpers.

Signed-off-by: Thiago Farina <tfarina@chromium.org>