Article View: dnet.archiv
Article #167unify-package von Wayne Davison
From: Bernard Sieloff
Date: Sat, 05 Jan 1991 19:00
Date: Sat, 05 Jan 1991 19:00
55 lines
3458 bytes
3458 bytes
Auf cs.uni-sb.de [134.96.7.254] kann jetzt per anonymous-ftp das unify-package von Wayne Davison (0004475895@mcimail.com) abgeholt werden unter /pub/utils/patch/unify.tar.Z (19kByte). Hier Mr. Davison im File "PROPAGANDA" zu unify: I've created a new context diff format that combines the old and new hunks into one unified hunk. The result? The unified context diff, or "unidiff." Posting your patch using a unidiff will usually cut its size down by around 25% (I've seen from 12% to 48%, depending on how many redundant context lines are removed). Even if the diffs are generated with only 2 lines of context, the savings still average around 20%. Keep in mind that *no information is lost* by the conversion process. Only the redundancy of having multiple identical context lines. If you're worried that some people will be unable to apply a patch released in unidiff format then you could include the "unipatch.c" program -- 1.3k of C source that converts a unidiff into a context diff that any version of patch can understand. If your patch is at least 10k, you'll STILL be saving space. Not worth the hassle? I disagree. The goal of saving net bandwidth (not to mention storage space) is a good one. The conversion process will take some time, but I've attempted to make it as painless as possible. I've included: o a patch to make gnudiff (v1.14) generate a unidiff. o a patch to make patch (patchlevel 12) accept a unidiff. o a versatile program called "unify" that can translate from a context diff (new- or old-style) into a unidiff, and from a unidiff into a true new-style context diff. o a man page for unify. o a 1.3k bandaid called "unipatch" that translates a unidiff into a context diff format that older versions of patch can understand. (It outputs a slightly degenerate form of a context diff (no '!'s) but it works great with patch.) o a Makefile to get you going quickly. Use this package to "unify" your site, and then save it to help others. Mail the 1.3k bandaid to anyone who complains about being unable to apply a unidiff, and also offer to supply the whole conversion package if desired. Soon, the whole net will be unified. ;-) ================================================================= Noch eine Bemerkung (auch zu meinem Posting wg. gcc-1.38): Es besteht ausser dem anonymous-ftp _keine_ Moeglichkeit, etwas von unserem Software-Archiv hier zu beziehen; also weder per X.29-Zugang, noch per anonymous-uucp oder was sonst auch immer. Das wird sich auch kaum in naechster Zeit aendern. -- Bernard Sieloff | DOMAIN: bs@cs.uni-sb.de Universitaet des Saarlandes | UUCP: bs@sbsvax.uucp FB 14 - Informatik (Dept. of CS) | ICBM: 49 15 20 N / 07 02 30 E Bau 36, Im Stadtwald 15 | Phone: +49 681 302 2434 D-6600 Saarbruecken 11, Germany | Fax: +49 681 302 4421
Technical Details
Message-ID:
<8458@sbsvax.cs.uni-sb.de>Path:
arc1-ca.pugleaf.net!gmdzi!unido!sbsvax!bsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11b371,e25ccb4055c56a2c,start X-Google-Attributes: gid11b371,public X-Google-ArrivalTime: 1991-01-05 19:33:54 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!sbsvax!bs From: bs@sbsvax.cs.uni-sb.de (Bernard Sieloff) Newsgroups: dnet.archiv Subject: unify-package von Wayne Davison Keywords: patch diff unify Message-ID: <8458@sbsvax.cs.uni-sb.de> Date: 5 Jan 91 19:00:52 GMT Distribution: dnet Organization: Universitaet des Saarlandes, Saarbruecken, Germany Lines: 55