{"thread":{"id":"33527","subject":"git rev-list --pretty=format:\"\" issue","startedAt":"2013-04-17T21:11:18Z","lastAt":"2013-04-18T07:30:36Z","messageCount":3,"participants":["Forrest Galloway","Junio C Hamano","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"214641","messageId":"CAH2yXXYggB=Wv-w4B9qU=ZxAuqjPVa5WRNZRnMRrWShkTp0UFg@mail.gmail.com","threadId":"33527","inReplyTo":null,"subject":"git rev-list --pretty=format:\"\" issue","fromName":"Forrest Galloway","fromEmail":"f.galloway@gmail.com","sentAt":"2013-04-17T21:11:18Z","receivedAt":"2013-04-17T21:11:18Z","isPatch":false,"sender":{"key":"f.galloway@gmail.com","avatar":null},"body":"git 1.8.2.1 on OSX(Mountain Lion) installed with Homebrew\n\nI am seeing an issue when trying to format the output from rev-list command.\ngit log --pretty=format:\"%H - %an, %ar : %s\" When I attempt the above\nstring, instead of printing to the shell, LESS is opened and the\noutput is displayed there.\n\n\nGot the command from here:\nhttp://git-scm.com/book/en/Git-Basics-Viewing-the-Commit-History\n\ngit log --pretty=format:\"%h - %an, %ar : %s\" The string above works\nfine when I change the %h to %H the issue shoes up.\n"},{"id":"214647","messageId":"7vk3o0erjq.fsf@alter.siamese.dyndns.org","threadId":"33527","inReplyTo":"CAH2yXXYggB=Wv-w4B9qU=ZxAuqjPVa5WRNZRnMRrWShkTp0UFg@mail.gmail.com","subject":"Re: git rev-list --pretty=format:\"\" issue","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-04-17T22:11:21Z","receivedAt":"2013-04-17T22:11:21Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Forrest Galloway <f.galloway@gmail.com> writes:\n\n> git 1.8.2.1 on OSX(Mountain Lion) installed with Homebrew\n>\n> I am seeing an issue when trying to format the output from rev-list command.\n> git log --pretty=format:\"%H - %an, %ar : %s\" When I attempt the above\n> string, instead of printing to the shell, LESS is opened and the\n> output is displayed there.\n>\n>\n> Got the command from here:\n> http://git-scm.com/book/en/Git-Basics-Viewing-the-Commit-History\n>\n> git log --pretty=format:\"%h - %an, %ar : %s\" The string above works\n> fine when I change the %h to %H the issue shoes up.\n\nActually, less is running in both cases.\n\nWe give --quit-if-one-screen (-F) and --chop-long-lines (-S) by\ndefault when we run \"less\", unless you have your own LESS\nenvironment variable to override our choice, if your history is\nshorter than one screenful *and* if your output lines are narrower\nthan your terminal, it exits after showing the output.\n\nBy passing %H instead of %h, you make the output wider, and when\nviewing output with --chop-long-lines, less refuses to implicitly\nexit with --quit-if-one-screen, because you may want to look at the\nRHS end of the output with right/left arrow keys, and it cannot do\nso if it exits after showing the last line.\n\nIf you do not want pager, run it with no-pager, like this:\n\n\tgit --no-pager log ...your other parameters...\n"},{"id":"214685","messageId":"87bo9cxplv.fsf@linux-k42r.v.cablecom.net","threadId":"33527","inReplyTo":"7vk3o0erjq.fsf@alter.siamese.dyndns.org","subject":"Re: git rev-list --pretty=format:\"\" issue","fromName":"Thomas Rast","fromEmail":"trast@inf.ethz.ch","sentAt":"2013-04-18T07:30:36Z","receivedAt":"2013-04-18T07:30:36Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Junio C Hamano <gitster@pobox.com> writes:\n\n> Forrest Galloway <f.galloway@gmail.com> writes:\n>\n>> git 1.8.2.1 on OSX(Mountain Lion) installed with Homebrew\n>>\n>> I am seeing an issue when trying to format the output from rev-list command.\n>> git log --pretty=format:\"%H - %an, %ar : %s\" When I attempt the above\n>> string, instead of printing to the shell, LESS is opened and the\n>> output is displayed there.\n[...]\n>\n> Actually, less is running in both cases.\n[...]\n> If you do not want pager, run it with no-pager, like this:\n>\n> \tgit --no-pager log ...your other parameters...\n\nAlso note that the pager is automatically disabled if you redirect\nstdout, so --no-pager is only required in some fringe cases, notably\nwhen attempting to run git under GDB.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"}]}