rev-list.c example: use common utils, reorganize
Reorganize rev-parse example
Clean up showindex sample