bash -c echo "b40754f is a MERGE commit. Parents:"; git log -1 --format=" %H%n parents: %P" b40754f echo; echo "b40754f parents resolved:"; for p in $(git log -1 --format=%P b40754f); do git log -1 --format=" %h %ci %s" $p; done echo; echo "tree diff 285166c .. b40754f (empty = identical trees):" git diff --stat 285166c b40754f || true echo "[end diff]" echo; echo "tree diff 24f7fb5 .. b40754f:" git diff --stat 24f7fb5 b40754f | tail -5