Comments (5)
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.
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.
@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.
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.
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)
- Apt package? HOT 2
- update icdiff on pypi.org to latest version HOT 2
- ChangeLog does not mention versions newer than 1.9.4 HOT 1
- BUG: Filenames show as mismatch when using exclusions
- Bug report: configuration for `git icdiff` did not work HOT 2
- installing the latest release-2.0.0 requires different command than install instructions HOT 2
- icdiff doesn't work on windows HOT 2
- Add support to specify colors using RGB ? HOT 1
- Add Support for custom patch hunk headers (with some builtins) HOT 1
- It seems have some problem about utf-8 HOT 1
- git icdiff shows old filname for renamed files HOT 2
- Multi-version of the Python HOT 1
- Exit code 1 using process substitutions HOT 4
- Pip install with `--platform` showing ERROR HOT 2
- [issue] linux more shows empty line. ex) icdiff -N fileA fileB | more -60 HOT 1
- Config file HOT 1
- Feature Request: Add an option to output directories before the files (recursively) HOT 1
- icdiff hanging on large files HOT 5
- Not clear how to install icdiff HOT 2
- Publish wheels for icdiff HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icdiff.