[vox-tech] patch question

Henry House vox-tech@lists.lugod.org
Mon, 16 Sep 2002 10:14:22 -0700


--5QAgd0e35j3NYeGe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 12, 2002 at 05:10:45PM -0700, Peter Jay Salzman wrote:
> hola,
>=20
> is there an application that will patch a file using diff, but will:
>=20
> 0. show the next hunk
> 1. show old and replacement text (with context)
> 2. ask if you want to accept the change
> 3. either patch the file or toss the hunk
> 4. repeat for each hunk
>=20
> i'd prefer something ncurses based so i don't have to start X to use the
> application.

TkDiff does almost what you want. It requires X and works on the two starti=
ng
files using its own internal diff workalike, not the starting file and the
diff, but otherwise is exactly what you want. Obviously one could make a
wrapper script to patch a copy of the starting file and invoke tkdiff
thereon.

TkDiff is in Debian.

--=20
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/p=
gp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

--5QAgd0e35j3NYeGe
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9hhFti3lu92AVGcIRAh3EAJ0awtLjQ/1PIkDIwk/4OefP4+egwQCeIMwl
UVIB78ihP6U7tj1cqMqRVUU=
=lzYJ
-----END PGP SIGNATURE-----

--5QAgd0e35j3NYeGe--