git-p4: add read_pipe_text() internal function