Implement the --first-parent option in examples/log.c