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