Re: git-difftool
- From
- enso <a.calhoon@gmail.com>
- Date
- Jan 17, 2009, 03:47 UTC
- Message-ID
- <1232164040173-2171934.post@n2.nabble.com>
- In-Reply-To
- <46dff0320901011759ke7026d9hafe4fdde099e370b@mail.gmail.com>
Ping Yin wrote:
> > Thanks. With GIT_PAGER="" it works now. >
Personally, I didn't like having to screw around with environment variables directly to get vimdiff to work. So I did the following:
1) Made a simple diff script gitvimdiff.sh:
#!/bin/env sh vimdiff "$2" "$5"
2) git config --global diff.external ~/path/to/gitvimdiff.sh 3) git config --global pager.diff ""
Now when I run git-diff it uses vimdiff (hooray) and automatically turns the pager off for me! Now only if I could get meld to work under cygwin.
-- View this message in context: http://n2.nabble.com/git-difftool-tp1814817p2171934.html Sent from the git mailing list archive at Nabble.com.