public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Thomas Rast <trast@inf•ethz.ch>
To: Forrest Galloway <f.galloway@gmail•com>
Cc: Junio C Hamano <gitster@pobox•com>, <git@vger•kernel.org>
Subject: Re: git rev-list --pretty=format:"" issue
Date: Thu, 18 Apr 2013 09:30:36 +0200	[thread overview]
Message-ID: <87bo9cxplv.fsf@linux-k42r.v.cablecom.net> (raw)
In-Reply-To: <7vk3o0erjq.fsf@alter.siamese.dyndns.org> (Junio C. Hamano's message of "Wed, 17 Apr 2013 15:11:21 -0700")

Junio C Hamano <gitster@pobox•com> writes:

> Forrest Galloway <f.galloway@gmail•com> writes:
>
>> git 1.8.2.1 on OSX(Mountain Lion) installed with Homebrew
>>
>> I am seeing an issue when trying to format the output from rev-list command.
>> git log --pretty=format:"%H - %an, %ar : %s" When I attempt the above
>> string, instead of printing to the shell, LESS is opened and the
>> output is displayed there.
[...]
>
> Actually, less is running in both cases.
[...]
> If you do not want pager, run it with no-pager, like this:
>
> 	git --no-pager log ...your other parameters...

Also note that the pager is automatically disabled if you redirect
stdout, so --no-pager is only required in some fringe cases, notably
when attempting to run git under GDB.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

      reply	other threads:[~2013-04-18  7:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-17 21:11 git rev-list --pretty=format:"" issue Forrest Galloway
2013-04-17 22:11 ` Junio C Hamano
2013-04-18  7:30   ` Thomas Rast [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bo9cxplv.fsf@linux-k42r.v.cablecom.net \
    --to=trast@inf$(echo .)ethz.ch \
    --cc=f.galloway@gmail$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=gitster@pobox$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox