Only page git output when necessary

Also keep paged text when pager quits