add -q option to print only SHAs

Signed-off-by: Iliyan Malchev <malchev@google.com>