{"thread":{"id":"25564","subject":"I want to omit the commit log message from the log output","startedAt":"2010-10-27T18:58:02Z","lastAt":"2010-10-27T20:26:21Z","messageCount":3,"participants":["layer","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"154567","messageId":"18995.1288205882@relay.known.net","threadId":"25564","inReplyTo":null,"subject":"I want to omit the commit log message from the log output","fromName":"layer","fromEmail":"layer@known.net","sentAt":"2010-10-27T18:58:02Z","receivedAt":"2010-10-27T18:58:02Z","isPatch":false,"sender":{"key":"layer@known.net","avatar":null},"body":"I'm trying to simulate the output that comes at the end of the merge:\n\n$ git merge origin/master\nUpdating f682676..b37ad77\nFast-forward\n MODULES                           |    3 +-\n Makefile.patch82                  |    2 +-\n bin/subs.sh                       |   43 +++-\n...\n status.sh                         |   14 +-\n whatsnew.sh                       |   15 +\n 12 files changed, 636 insertions(+), 26 deletions(-)\n create mode 100755 bin/git-what-branch\n create mode 100644 bin/git-what-branch.readme\n create mode 100755 whatsnew.sh\n$ \n\nThat is, I want to run a command that will show me the above output\nwithout doing the merge.  This is close, but not quite:\n\n$ git log --summary --stat origin/master ^HEAD\n\n\nAre there arguments to git log that can do what I want?\n\nThanks.\n"},{"id":"154571","messageId":"20101027193650.GA24934@burratino","threadId":"25564","inReplyTo":"18995.1288205882@relay.known.net","subject":"Re: I want to omit the commit log message from the log output","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-10-27T19:36:50Z","receivedAt":"2010-10-27T19:36:50Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\nlayer wrote:\n\n> I'm trying to simulate the output that comes at the end of the merge:\n\nCheating answer:\n\nHmm, I wonder how the scripted version did that.\n\n$ git grep -Oless -eFast-forward -- contrib/examples/git-merge.sh\n        msg=\"Fast-forward\"\n        if test -n \"$have_message\"\n        then\n                msg=\"$msg (no commit created; -m option ignored)\"\n        fi\n        new_head=$(git rev-parse --verify \"$1^0\") &&\n        git read-tree -v -m -u --exclude-per-directory=.gitignore $head \"$new_head\" &&\n        finish \"$new_head\" \"$msg\" || exit\n        dropsave\n        exit 0\n        ;;\n[ok, it's the finish function.  press q to exit the pager, and]\n$ git grep -Oless -F -e'finish ()' -- contrib/examples/git-merge.sh\nfinish () {\n        if test '' = \"$2\"\n[...]\n                if test \"$show_diffstat\" = t\n                then\n                        # We want color (if set), but no pager\n                        GIT_PAGER='' git diff --stat --summary -M \"$head\" \"$1\"\n[...]\n\nSo apparently\n\n\tgit diff --stat --summary -M <before> <after>\n\nwill take care of it.\n\nOn the other hand, if you want diff output for a single commit (i.e.,\n\"somewhat like git rev-list --pretty --summary --stat --no-walk but no\ncommit messages\"), then some variation on\n\n\tgit diff-tree --color --cc --summary --stat --no-commit-id origin/pu\n\nmight bring some joy.\n\nHope that helps,\nJonathan\n"},{"id":"154574","messageId":"20638.1288211181@relay.known.net","threadId":"25564","inReplyTo":"20101027193650.GA24934@burratino","subject":"Re: I want to omit the commit log message from the log output","fromName":"layer","fromEmail":"layer@known.net","sentAt":"2010-10-27T20:26:21Z","receivedAt":"2010-10-27T20:26:21Z","isPatch":false,"sender":{"key":"layer@known.net","avatar":null},"body":"Looks like \n\n  git diff-tree --cc --summary --stat --no-commit-id origin/master..HEAD\n\nis what I want.\n\nThanks!\n"}]}