# HG changeset patch # User Oleksandr Gavenko # Date 1544349517 -7200 # Node ID cd4554e0150e0488eec7fbd8073b279a91a73000 # Parent a49f3423eb55b5f6127d77ac90a9b66cd7798b6b Review history of merges only. diff -r a49f3423eb55 -r cd4554e0150e git.rst --- a/git.rst Sun Dec 09 11:57:43 2018 +0200 +++ b/git.rst Sun Dec 09 11:58:37 2018 +0200 @@ -275,6 +275,21 @@ $ git show $REV $ git diff $REV^ $REV +Review merge commit related to specific parent:: + + $ git diff $REV^1 $REV + $ git diff $REV^2 $REV + + $ git diff HEAD^1 HEAD + $ git diff HEAD^2 HEAD + +.. note:: ``^1`` is the first parent, ``^2`` is the second parent, and so on. + +``git show`` command for merge commits shows only changes from conflicting hunks. It is equivalent +to (lines that changed as part of the conflict resolution):: + + $ git diff-tree --cc $REV + Review difference between commits:: $ git $REV1 $REV2 @@ -286,6 +301,10 @@ $ git log -p $ git log -p $FROM_REV +Review history of merges only:: + + $ git log --min-parents=2 -p --cc + View unpublished git commits / analog of git 'hg outgoing' ==========================================================