diff of moved files

Thomas Klausner tk at giga.or.at
Sat Nov 30 02:57:25 CST 2013


On Fri, Nov 29, 2013 at 09:03:38PM -0500, Augie Fackler wrote:
> 
> On Nov 29, 2013, at 6:23 PM, Thomas Klausner <tk at giga.or.at> wrote:
> 
> > Hi!
> > 
> > When I import remote sources, I use 'git addremove -s 80' to find
> > files that were moved. This works fine -- it recognizes if a is
> > renamed to b and modified.
> > 
> > When I do 'hg diff' before committing this, I get two diffs though:
> > one for removing a and one for adding b. I'd be more interested in the
> > diff between a and b, since we've decided it's the same file.
> > 
> > Is there a way to get that?
> 
> 'hg help diff' might have led you to 'hg diff --git', which I believe does this.

It does. Thank you!
 Thomas


More information about the Mercurial mailing list