author | Petr Baudis <pasky@suse.cz> | |
Wed, 10 Feb 2010 01:11:49 +0000 (02:11 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 12 Feb 2010 19:32:23 +0000 (11:32 -0800) | ||
commit | 88d9d45d071379e81e585faa95e4f28414d7d973 | |
tree | 541327549a7cadbbb324c1f791351cb711609671 | tree | snapshot |
parent | 8051a030617cf7d083568cca223bdaa15052c33f | commit | diff |
git log -p -m: document -m and honor --first-parent
git log -p -m is used to show one merge entry per parent, with an
appropriate diff; this can be useful when examining histories where
full set of changes introduced by a merged branch is interesting, not
only the conflicts.
This patch properly documents the -m switch, which has so far been
mentioned only as a fairly special diff-tree flag.
It also makes the code show full patch entry only for the first parent
when --first-parent is used. Thus:
git log -p -m --first-parent
will show the history from the "main branch perspective", while also
including full diff of changes introduced by other merged in branches.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git log -p -m is used to show one merge entry per parent, with an
appropriate diff; this can be useful when examining histories where
full set of changes introduced by a merged branch is interesting, not
only the conflicts.
This patch properly documents the -m switch, which has so far been
mentioned only as a fairly special diff-tree flag.
It also makes the code show full patch entry only for the first parent
when --first-parent is used. Thus:
git log -p -m --first-parent
will show the history from the "main branch perspective", while also
including full diff of changes introduced by other merged in branches.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-generate-patch.txt | diff | blob | history | |
Documentation/git-log.txt | diff | blob | history | |
Documentation/rev-list-options.txt | diff | blob | history | |
log-tree.c | diff | blob | history |