{"thread":{"id":"45423","subject":"How do I make 'git diff --no-index' follow symlinks?","startedAt":"2017-03-18T19:08:36Z","lastAt":"2017-03-18T22:54:48Z","messageCount":3,"participants":["Ævar Arnfjörð Bjarmason","Junio C Hamano","Dennis Kaarsemaker"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"314531","messageId":"CACBZZX6Bknimu26in8YG7TbsL3hEpmXTYwQAZQ5xK-DFoSatEg@mail.gmail.com","threadId":"45423","inReplyTo":null,"subject":"How do I make 'git diff --no-index' follow symlinks?","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2017-03-18T17:55:27Z","receivedAt":"2017-03-18T19:08:36Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"I'd like to (ab)use git's nice diff interface and make this work:\n\n    git --no-pager diff --no-index <(echo foo) <(echo bar)\n\nIt just prints:\n\n    -pipe:[203030063]\n    +pipe:[203030065]\n\nBut I want:\n\n    $ diff -u0 <(echo foo) <(echo bar)|tail -n 2\n    -foo\n    +bar\n\nI went diving through the diff code for a bit, but couldn't find where\nit's stat()-ing the two files and deciding it's not going to follow\nsymlinks.\n\nJust having some option to follow symlinks would make this work.\n"},{"id":"314535","messageId":"xmqqk27m1ixf.fsf@gitster.mtv.corp.google.com","threadId":"45423","inReplyTo":"CACBZZX6Bknimu26in8YG7TbsL3hEpmXTYwQAZQ5xK-DFoSatEg@mail.gmail.com","subject":"Re: How do I make 'git diff --no-index' follow symlinks?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-03-18T19:30:52Z","receivedAt":"2017-03-18T19:31:18Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Sounds like\n\n    https://public-inbox.org/git/20161111201958.2175-1-dennis@kaarsemaker.net/\n\nto me.  A key message in the thread may be:\n\n    https://public-inbox.org/git/alpine.DEB.2.20.1611121106110.3746@virtualbox/\n"},{"id":"314571","messageId":"1489877673.24742.1.camel@kaarsemaker.net","threadId":"45423","inReplyTo":"xmqqk27m1ixf.fsf@gitster.mtv.corp.google.com","subject":"Re: How do I make 'git diff --no-index' follow symlinks?","fromName":"Dennis Kaarsemaker","fromEmail":"dennis@kaarsemaker.net","sentAt":"2017-03-18T22:54:33Z","receivedAt":"2017-03-18T22:54:48Z","isPatch":false,"sender":{"key":"dennis@kaarsemaker.net","avatar":"https://avatars.githubusercontent.com/u/200649?v=4"},"body":"On Sat, 2017-03-18 at 12:30 -0700, Junio C Hamano wrote:\n> Sounds like\n> \n>     https://public-inbox.org/git/20161111201958.2175-1-dennis@kaarsemaker.net/\n> \n> to me.  A key message in the thread may be:\n> \n>     https://public-inbox.org/git/alpine.DEB.2.20.1611121106110.3746@virtualbox/\n\nSorry for the delay in sending v3. I've had a serious case of\nLennonitis (Life is what happens to you while you're busy making other\nplans).\n\nD.\n"}]}