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

Strange behaviour of git diff branch1 ... branch2

From
Aaron Schrab <aaron@schrab.com>
Date
Oct 26, 2012, 21:26 UTC
Message-ID
<20121026212650.GB2612@pug.qqx.org>
I came across this odd question on stackoverflow:
	http://stackoverflow.com/q/13092854/1507392

If git diff is run with "..." as a separate argument between two commit-ish arguments causes it to produce strange output. The differences seem to be the same as if "..." was left out, but change lines begin with 4 + or - characters rather than just 1.

Can anybody explain what is happening here? I don't have any reason to want to use that form myself, but I'm very curious about why it produces this odd output.

Thanks.
Next: Nguyen Thai Ngoc Duy
Message 1 of 5 in “Strange behaviour of git diff branch1 ... branch2”
  1. Aaron SchrabOct 26, 2012
  2. Nguyen Thai Ngoc DuyOct 27, 2012
  3. Junio C HamanoOct 27, 2012
  4. Nguyen Thai Ngoc DuyOct 27, 2012
  5. Junio C HamanoNov 12, 2012

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.