From: Mike Hommey Date: Sat, 08 Dec 2007 08:53:02 GMT Subject: Re: [OT] perhaps we want to support copied-context diff output Message-ID: <20071208085302.GA13432@glandium.org> In-Reply-To: <7vmyslwqdr.fsf@gitster.siamese.dyndns.org> > Perhaps we may want to add "diff -c" (copied context) output format as > an option, which may be easier to read. Or maybe use the patience diff. On a testcase I had a few months ago, patience diff would give: @@ -42,11 +42,10 @@ include $(DEPTH)/config/autoconf.mk +EXTRA_COMPONENTS = nsKillAll.js + include $(topsrcdir)/config/rules.mk -libs:: - $(INSTALL) $(srcdir)/nsKillAll.js $(DIST)/bin/components - clean:: rm -f $(DIST)/bin/components/nsKillAll.js Where "normal" diff would give: @@ -42,10 +42,9 @@ include $(DEPTH)/config/autoconf.mk -include $(topsrcdir)/config/rules.mk +EXTRA_COMPONENTS = nsKillAll.js -libs:: - $(INSTALL) $(srcdir)/nsKillAll.js $(DIST)/bin/components +include $(topsrcdir)/config/rules.mk clean:: rm -f $(DIST)/bin/components/nsKillAll.js git outputs the same as the normal diff, bzr and svn seem to use the patience diff. Mercurial outputs almost the same as bzr and svn: @@ -42,10 +42,9 @@ include $(DEPTH)/config/autoconf.mk +EXTRA_COMPONENTS = nsKillAll.js + include $(topsrcdir)/config/rules.mk - -libs:: - $(INSTALL) $(srcdir)/nsKillAll.js $(DIST)/bin/components clean:: rm -f $(DIST)/bin/components/nsKillAll.js Mike