shortlog: default to HEAD when the standard input is a tty