Jeff King <peff@xxxxxxxx> writes: > On Thu, Apr 03, 2008 at 08:13:04AM -0600, Jeremy Ramer wrote: > >> I am trying to figure out how to quickly diff two source files that >> led to a merge conflict. When a conflict occurs the command >> [...] >> So far I am thinking of >> # git checkout-index --stage=2 --temp foo >> # git checkout-index --stage=3 --temp foo >> # git diff .merge_x1 .merge_x2 > > The special ref syntax :<n>:file refers to the blob in stage <n> of the > index. So you can see them with: > > git show :2:foo > git show :3:foo > > Or diff them with: > > git diff :2:foo :3:foo See also git diff --ours git diff --theirs git diff --base and man git-diff-files (BTW, it's a pity not to find this in man git-diff). -- Matthieu -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html