Separate object listing routines out of rev-list