git@vger.kernel.org mailing list mirror (one of many)
 help / Atom feed
* How do I make 'git diff --no-index' follow symlinks?
@ 2017-03-18 17:55 Ævar Arnfjörð Bjarmason
  2017-03-18 19:30 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2017-03-18 17:55 UTC (permalink / raw)
  To: Git Mailing List

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:

    -pipe:[203030063]
    +pipe:[203030065]

But I want:

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

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
symlinks.

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

^ permalink raw reply	[flat|threaded] 3+ messages in thread

* Re: How do I make 'git diff --no-index' follow symlinks?
  2017-03-18 17:55 How do I make 'git diff --no-index' follow symlinks? Ævar Arnfjörð Bjarmason
@ 2017-03-18 19:30 ` Junio C Hamano
  2017-03-18 22:54   ` Dennis Kaarsemaker
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2017-03-18 19:30 UTC (permalink / raw)
  To: Ævar Arnfjörð Bjarmason; +Cc: Git Mailing List

Sounds like

    https://public-inbox.org/git/20161111201958.2175-1-dennis@kaarsemaker.net/

to me.  A key message in the thread may be:

    https://public-inbox.org/git/alpine.DEB.2.20.1611121106110.3746@virtualbox/

^ permalink raw reply	[flat|threaded] 3+ messages in thread

* Re: How do I make 'git diff --no-index' follow symlinks?
  2017-03-18 19:30 ` Junio C Hamano
@ 2017-03-18 22:54   ` Dennis Kaarsemaker
  0 siblings, 0 replies; 3+ messages in thread
From: Dennis Kaarsemaker @ 2017-03-18 22:54 UTC (permalink / raw)
  To: Junio C Hamano, Ævar Arnfjörð Bjarmason; +Cc: Git Mailing List

On Sat, 2017-03-18 at 12:30 -0700, Junio C Hamano wrote:
> Sounds like
> 
>     https://public-inbox.org/git/20161111201958.2175-1-dennis@kaarsemaker.net/
> 
> to me.  A key message in the thread may be:
> 
>     https://public-inbox.org/git/alpine.DEB.2.20.1611121106110.3746@virtualbox/

Sorry for the delay in sending v3. I've had a serious case of
Lennonitis (Life is what happens to you while you're busy making other
plans).

D.

^ permalink raw reply	[flat|threaded] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-18 17:55 How do I make 'git diff --no-index' follow symlinks? Ævar Arnfjörð Bjarmason
2017-03-18 19:30 ` Junio C Hamano
2017-03-18 22:54   ` Dennis Kaarsemaker

git@vger.kernel.org mailing list mirror (one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	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:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.org/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox