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

Re: [PATCH] diff-tree -c: show a merge commit a bit more sensibly.

From
FWFlorian Weimer <fw@deneb.enyo.de>
Date
Jan 25, 2006, 12:35 UTC
Message-ID
<871wywzdrp.fsf@mid.deneb.enyo.de>
In-Reply-To
<7vwtgqas0y.fsf@assigned-by-dhcp.cox.net>
* Junio C. Hamano:
Show 19 quoted lines
> A new option '-c' to diff-tree changes the way a merge commit is
> displayed when generating a patch output.  It shows a "combined
> diff" (hence the option letter 'c'), which looks like this:
>
>     $ git-diff-tree --pretty -c -p fec9ebf1 | head -n 18
>     diff-tree fec9ebf... (from parents)
>     Merge: 0620db3... 8a263ae...
>     Author: Junio C Hamano <junkio@cox.net>
>     Date:   Sun Jan 15 22:25:35 2006 -0800
>
> 	Merge fixes up to GIT 1.1.3
>
>     diff --combined describe.c
>     @@ +99,18 @@
>        }
>
>     -  static void describe(char *arg)
>      - static void describe(struct commit *cmit, int last_one)
>     ++ static void describe(char *arg, int last_one)
Maybe it would make sense to include a lines like these?
      #  0620db3... (Merge branch 'fix')
       # 8a263ae... (GIT 1.1.3)
      ## fec9ebf... (Merge fixes up to GIT 1.1.3)
This would make more clear which columns corresponds to which parent.
Previous: Junio C Hamano
Message 4 of 4 in “diff-tree -c: show a merge commit a bit more sensibly.”
  1. diff-tree -c: show a merge commit a bit more sensibly.Junio C Hamano, Jan 24, 2006
  2. Linus TorvaldsJan 24, 2006
  3. Junio C HamanoJan 25, 2006
  4. Florian WeimerJan 25, 2006

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.