git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Dailey <rcdailey.lists@gmail.com>
To: Chris Packham <judge.packham@gmail.com>
Cc: Git <git@vger.kernel.org>
Subject: Re: Cygwin + git log = no pager!
Date: Sun, 23 Feb 2014 14:33:01 -0600	[thread overview]
Message-ID: <CAHd499AbsUwmA0HWu31jW2n8eUNnRtU7URKPfBU7EhU6-F48zg@mail.gmail.com> (raw)
In-Reply-To: <53085434.4060106@gmail.com>

On Sat, Feb 22, 2014 at 1:39 AM, Chris Packham <judge.packham@gmail.com> wrote:
> On 22/02/14 18:18, Robert Dailey wrote:
>> So it seems that the pager doesn't work by default when running `git
>> log` from Cygwin like it does in msysgit for Windows.
>>
>> I know I can pipe to `less` but that requires the additional typing
>> obviously. Does anyone know how I can get the pager to work in Cygwin
>> for git log, reflog, and other commands like it does in msysgit?
>>
>> Thanks in advance.
>
> Add GIT_PAGER=less to your environment. I don't know if you were using
> the cygwin packaged git or building from source but I'm surprised the
> pager is not set by default as you actually have to define the use of
> something other than less.

Thanks for the response. I did set this environment variable in my
.bashrc like so:

export GIT_PAGER=less

However after I do a 'git log' it is just spitting it out all at once
and not entering the pager.

  reply	other threads:[~2014-02-23 20:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-22  5:18 Cygwin + git log = no pager! Robert Dailey
2014-02-22  7:39 ` Chris Packham
2014-02-23 20:33   ` Robert Dailey [this message]
2014-02-24  7:55     ` Chris Packham
2014-02-24  9:06       ` Jeff King
2014-02-24 19:34         ` Robert Dailey
2014-02-26  9:26           ` Jeff King
2014-02-26 15:54             ` Robert Dailey
2014-02-26 16:41               ` Robert Dailey
2014-02-27  6:21               ` Jeff King
2014-02-27  7:36               ` Chris Packham

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=CAHd499AbsUwmA0HWu31jW2n8eUNnRtU7URKPfBU7EhU6-F48zg@mail.gmail.com \
    --to=rcdailey.lists@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=judge.packham@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).