list mirror (unofficial, one of many)
 help / color / Atom feed
From: Ævar Arnfjörð Bjarmason <>
To: Git Mailing List <>
Subject: How do I make 'git diff --no-index' follow symlinks?
Date: Sat, 18 Mar 2017 18:55:27 +0100
Message-ID: <> (raw)

I'd like to (ab)use git's nice diff interface and make this work:

    git --no-pager diff --no-index <(echo foo) <(echo bar)

It just prints:


But I want:

    $ diff -u0 <(echo foo) <(echo bar)|tail -n 2

I went diving through the diff code for a bit, but couldn't find where
it's stat()-ing the two files and deciding it's not going to follow

Just having some option to follow symlinks would make this work.

             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-18 17:55 Ævar Arnfjörð Bjarmason [this message]
2017-03-18 19:30 ` Junio C Hamano
2017-03-18 22:54   ` Dennis Kaarsemaker

Reply instructions:

You may reply publically 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:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link list mirror (unofficial, one of many)

Archives are clonable:
	git clone --mirror
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Newsgroups are available over NNTP:

 note: .onion URLs require Tor:

AGPL code for this site: git clone public-inbox