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

Re: git-whatchanged does not show merge result?

From
David Ho <davidkwho@gmail.com>
Date
Oct 14, 2005, 16:33 UTC
Message-ID
<4dd15d180510140933j7a730c49hb9cdaa98ea0a5b07@mail.gmail.com>
In-Reply-To
<4dd15d180510140929x2c69f61ag19a1409cfd993e7b@mail.gmail.com>
Hi,

Maybe someone can clear up a confusion I have with git-whatchanged. I created a new repo with just one file hello, split out a new branch "mybranch. When I merged back the changes from mybranch, git-whatchanged -p did not should the diff of the merge. Does it have some special behaviour I am not aware of. I'd appreciate if you can clarify. Notice that git-whatchange does not show the diff between (last commit) fd494be and 83ac91a1

Thanks, David
git version 0.99.7b
commands used (roughly to repeat the test)

mkdir git-tutorial cd git-tutorial git-init-db echo "Hello World" >hello git-update-index --add hello echo "It's a new day for git" >>hello echo "Initial commit" | git-commit-tree $(git-write-tree) > .git/HEAD git -m "added It's a new day..." commit hello git checkout -b mybranch git checkout mybranch echo "Work, work, work" >>hello git commit -m 'Some work.' hello git checkout master echo "Play, play, play" >>hello git commit -m 'Some fun.' hello git pull . mybranch vi hello (merge the change by hand...) git -m "merge work,work,... from mybranch" commit hello

last commit #cat .git/HEAD fd494becb20a8d9eddad01921de1cc9fe2cbf354

output from git-whatchanged -p hello
diff-tree 83ac91a13297887760f252aa9026e76235adcdd9 (from
7a78a9c5bb38ad4db1b5c9b14c1d409b2f36c0b0)
Author:  <davidho@penguin.nanometrics.ca>
Date:   Fri Oct 14 12:02:50 2005 -0400
    Some fun.
diff --git a/hello b/hello
--- a/hello
+++ b/hello
@@ -1,2 +1,3 @@
 Hello World
 It's a new day for git
+Play, play, play

diff-tree b12ea5026dbc9ad651fcad6b44a683548fda47a7 (from
7a78a9c5bb38ad4db1b5c9b14c1d409b2f36c0b0)
Author:  <davidho@penguin.nanometrics.ca>
Date:   Fri Oct 14 12:02:22 2005 -0400

    Some work.

diff --git a/hello b/hello
--- a/hello
+++ b/hello
@@ -1,2 +1,3 @@
 Hello World
 It's a new day for git
+Work, work, work

diff-tree 7a78a9c5bb38ad4db1b5c9b14c1d409b2f36c0b0 (from
e45b23ab79bec72ba4ef0a79820a3c172751e59b)
Author:  <davidho@penguin.nanometrics.ca>
Date:   Fri Oct 14 12:00:48 2005 -0400

    Add line "It's a new day..."

diff --git a/hello b/hello
--- a/hello
+++ b/hello
@@ -1 +1,2 @@
 Hello World
+It's a new day for git
Next: Linus Torvalds
Message 1 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.