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

Re: git-whatchanged does not show merge result?

From
Junio C Hamano <junkio@cox.net>
Date
Oct 14, 2005, 17:24 UTC
Message-ID
<7vd5m8rozb.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<4dd15d180510140933j7a730c49hb9cdaa98ea0a5b07@mail.gmail.com>
David Ho <davidkwho@gmail.com> writes:
> When I merged back the changes from mybranch, git-whatchanged -p did
> not should the diff of the merge.
You probably mean "git-whatchanged -p -m".
I've seen this question asked at least twice in the past.
    SYNOPSIS
    --------
    'git-whatchanged' <option>...
    DESCRIPTION
    -----------
    Shows commit logs and diff output each commit introduces.  The
    command internally invokes 'git-rev-list' piped to
    'git-diff-tree', and takes command line options for both of
    these commands.
    This manual page describes only the most frequently used options.

Perhaps the frequently used options should include '-m' as well. This part is from git-diff-tree.txt:

    -m::
            By default, "git-diff-tree --stdin" does not show
            differences for merge commits.  With this flag, it shows
            differences to that commit from all of its parents.
Previous: Linus TorvaldsNext: David Ho
Message 5 of 6 in “Re: git-whatchanged does not show merge result?”
  1. David HoOct 14, 2005
  2. Linus TorvaldsOct 14, 2005
  3. David HoOct 14, 2005
  4. Linus TorvaldsOct 14, 2005
  5. Junio C HamanoOct 14, 2005
  6. David HoOct 14, 2005

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.