Thread (205 messages) flat view 205 messages, 28 authors, 2016-08-12

Re: VCS comparison table

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:44

James Henstridge wrote:
On 20/10/06, Jakub Narebski [off-list ref] wrote:
quoted
quoted
What's nice is being able see the revno 753 and knowing that "diff -r
752..753" will show the changes it introduced. Checking the revo on a
branch mirror and knowing how out-of-date it is.
Huh? If you want what changes have been introduced by commit
c3424aebbf722c1f204931bf1c843e8a103ee143, you just do

# git diff c3424aebbf722c1f204931bf1c843e8a103ee143

(or better "git show" instead of "git diff" or "git diff-tree").
If you give only one commit (only one revision) git automatically
gives diff to its parent(s).
If a revision has multiple parents, what does it diff against in this
case?  Do you get one diff against each parent revision?
If revision has multiple parents (is merge commit), git-diff
(which is used by git-show) does not show differences (unless you
give two revisions in git-diff case).

You can either use '-m' option to show differences from all its
parents, or '-c'/'--cc' to show combined diff ('--cc' shows more
compact diff).
-- 
Jakub Narebski
Poland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help