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

Re: Strange behaviour of git diff branch1 ... branch2

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 27, 2012, 12:33 UTC
Message-ID
<4ecbe65e-4b56-4a49-96c3-1ea8b3f0c473@email.android.com>
In-Reply-To
<CACsJy8CX4Wbf3Bqez2kcQ7NGYMkqXC8MK+=hrH4iaev+0ZrQ8Q@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
Show 6 quoted lines
>
>Notice the --cc in the first line, which is combined diff. Usually
>combined-diff is between two points and one parent. Though somehow git
>passes 4 parents down combined-diff.c:show_combined_header, as you can
>see in the "index" line. I think we should fix rev parsing code as it
>does not make sense to pass 4 identical parents this way.
The two heads home from HEAD...HEAD the user has on the command line.
The user is getting exactly what she asked; there is nothing to fix.
Previous: Nguyen Thai Ngoc DuyNext: Nguyen Thai Ngoc Duy
Message 3 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.