git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git diff --no-index and file descriptor inputs

From
Jason Pyeron <jpyeron@pdinc.us>
Date
Sep 7, 2017, 16:00 UTC
Message-ID
<DF5E912A0E6343DF8C3E984A165490EF@blackfat>

I was hoping to leverage --word-diff-regex, but the --no-index option does not seem to work with <(...) notation.

I am I doing something wrong or is this a bug?
-Jason (reply to list please)

root@blackfat /projects $ git diff --no-index -- <(xmllint --format HRUniversalServices/pairs/src/esb/wsdl/pairs-american-dependents.wsdl) <(xmllint --format /projects/HRUniversalServices.368879ef/modules/pairs/src/esb/wsdl/pairs-amer ican-employees.wsdl)

root@blackfat /projects $ echo git diff --no-index -- <(xmllint --format HRUniversalServices/pairs/src/esb/wsdl/pairs-american-dependents.wsdl) <(xmllint --format /projects/HRUniversalServices.368879ef/modules/pairs/src/esb/wsdl/pairs-amer ican-employees.wsdl) git diff --no-index -- /dev/fd/63 /dev/fd/62

root@blackfat /projects $ git diff --no-index -- HRUniversalServices/pairs/src/esb/wsdl/pairs-american-dependents.wsdl /projects/HRUniversalServices.368879ef/modules/pairs/src/esb/wsdl/pairs-amer ican-employees.wsdl | wc -l 92

root@blackfat /projects $ diff -u <(xmllint --format HRUniversalServices/pairs/src/esb/wsdl/pairs-american-dependents.wsdl) <(xmllint --format /projects/HRUniversalServices.368879ef/modules/pairs/src/esb/wsdl/pairs-amer ican-employees.wsdl) | wc -l 82

root@blackfat /projects $ git --version git version 2.13.2

root@blackfat /projects $ uname -a CYGWIN_NT-10.0 blackfat 2.8.1(0.312/5/3) 2017-07-03 14:11 x86_64 Cygwin

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Next: Martin Ågren
Message 1 of 4 in “Git diff --no-index and file descriptor inputs”
  1. Jason PyeronSep 7, 2017
  2. Martin ÅgrenSep 7, 2017
  3. Jason PyeronSep 7, 2017
  4. Dennis KaarsemakerOct 24, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.