git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Packham <judge.packham@gmail.com>
To: Robert Dailey <rcdailey.lists@gmail.com>
Cc: Git <git@vger.kernel.org>
Subject: Re: Cygwin + git log = no pager!
Date: Mon, 24 Feb 2014 20:55:41 +1300	[thread overview]
Message-ID: <530AFAFD.2060504@gmail.com> (raw)
In-Reply-To: <CAHd499AbsUwmA0HWu31jW2n8eUNnRtU7URKPfBU7EhU6-F48zg@mail.gmail.com>

On 24/02/14 09:33, Robert Dailey wrote:
> 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.
> 

Um OK that was the obvious thing to try. There is also the config
variable core.pager but GIT_PAGER should take precedence.

Could something be setting the environment variable LESS? Reading the
git-config man page for core.pager git wants to set LESS to FRSX but if
it is already set git takes that as an indication that you don't want to
set LESS automatically.

If neither of those help you probably want to let us know your cygwin
version as well as your git version and how you installed git (i.e.
built from source or installed via cygwin).

  reply	other threads:[~2014-02-24  7:55 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
2014-02-24  7:55     ` Chris Packham [this message]
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=530AFAFD.2060504@gmail.com \
    --to=judge.packham@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=rcdailey.lists@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).