Commits

Steve Losh committed a572f44

api: it's 2010 -- time to use git diffs

fixes issue 47

Comments (0)

Files changed (1)

         diffs = {}
         for filename in filenames:
             m = cmdutil.matchfiles(self.target, [filename])
-            d = patch.diff(self.target, node1, node2, match=m,
-                opts=patch.diffopts(self.ui, opts))
+            diff_opts = patch.diffopts(self.ui, opts)
+            diff_opts.git = True
+            d = patch.diff(self.target, node1, node2, match=m, opts=diff_opts)
 
             # patch.diff will give us back a generator with two items
             # the first is the diff --git header, which we don't care about