3 ms·
Try git diff master...experiment (note there's three periods)
by dminor 10y ago
Try
git diff master...experiment
(note there's three periods)
- jordigh 10y agoThat works. Can you explain why? Does diff see this as a single commit or as set of commits? If it sees it as a set, how does it decide what two commits to diff from that set? If it's just one, what does it decide to diff? I'm kind of confused because gitrevisions(7) says the triple dot is symmetric difference, but exchanging master and experiment does not produce the same output from diff.
- dminor 10y agoNot so helpfully it has a different meaning in 'git diff' than in 'git log'. Basically, it means the difference in the second branch from the first common ancestor of the two branches.