ScottDuckworth / python-anyvcs

A Python abstraction layer for multiple version control systems
BSD 3-Clause "New" or "Revised" License
11 stars 4 forks source link

use -m flag for GitRepo.pdiff() call #8

Closed OEP closed 10 years ago

OEP commented 10 years ago

Without -m, diff-tree does not show any output for merge commits.

Before merging, you may want to check if "-m" is what we want. It looks like it is to me, but the "-c" flag by the docs sounded like the right thing to use. "-m" will do a separated side-by-side diff while "-c" will show an interleaved diff. However, it seems like when used on a merge commit which would have been fast-forwarded if --no-ff was not used, it just seems to echo the revision.