What is the purpose of "git diff branch1...branch2" (three dots) versus "git diff branch1..branch2" (two dots)?
Correct! Well done.
Incorrect.
The correct answer is A) The three-dot form shows changes introduced on "branch2" since it diverged from "branch1" (relative to their merge base), while the two-dot form shows a direct diff between the current tips of the two branches, including changes from both sides
Correct Answer
The three-dot form shows changes introduced on "branch2" since it diverged from "branch1" (relative to their merge base), while the two-dot form shows a direct diff between the current tips of the two branches, including changes from both sides
The three-dot syntax is often more useful for reviewing "what does this feature branch add" since it isolates changes unique to one side relative to their common ancestor, ignoring unrelated changes that happened on the other branch.