read_revision_from_stdin(): use strbuf