Coder Social home page Coder Social logo

Comments (5)

jeffkaufman avatar jeffkaufman commented on July 1, 2024

Hmm; I just tested this (linux, git-icidiff 1.7.2) and I don't see this behavior. What os are you on? What do the following commands give you?

  • git config --get core.pager
  • cat $(which git-icdiff)

from icdiff.

xrat avatar xrat commented on July 1, 2024

On my Debian Wheezy ^D closing the pager is typical for more contrary to less. Isn't this just a matter of $PAGER?

from icdiff.

mateusz-fiolka avatar mateusz-fiolka commented on July 1, 2024

@jeffkaufman
It's os x, 10.10.1 (14B25).

git config --get core.pager returns nothing. But I've just set this option to less and it works the same way.

git-icdiff is

#!/bin/bash
GITPAGER=$(git config --get core.pager)

if [ -z "$GITPAGER" ]; then
  GITPAGER="$PAGER"
fi

if [ -z "$GITPAGER" ]; then
  GITPAGER="less -R"
fi

if [ "$GITPAGER" = "more" -o "$GITPAGER" = "less" ]; then
  GITPAGER="$GITPAGER -R"
fi

export LESS_IS_MORE=1   # If it fits on the screen, don't page.
CMD="git difftool --no-prompt --extcmd icdiff $@ | $GITPAGER"
eval $CMD

@xrat $PAGER is set to less

from icdiff.

mateusz-fiolka avatar mateusz-fiolka commented on July 1, 2024

The final eval-uated command is:

git difftool --no-prompt --extcmd icdiff | less -R
(I've just printed it out in git-icdiff).

But when I enter it manually (without eval) the behaviour I get is expected (doesn't exit on ctrl+d). Which means that the problem is because of using eval.

But changing last two lines to git difftool --no-prompt --extcmd icdiff $@ | less -R doesn't help.

from icdiff.

mateusz-fiolka avatar mateusz-fiolka commented on July 1, 2024

@jeffkaufman @xrat

Ok, I've just found that removing LESS_IS_MORE line fixes the problem. As I see in latest version it is also removed. Thus my problem ceased to exist.
This issue can be now closed.

Thank you for your help!

from icdiff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.