OpenBSD CVS

CVS log for src/usr.bin/patch/ed.c


[BACK] Up to [local] / src / usr.bin / patch

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.4 / (download) - annotate - [select for diffs], Mon Dec 2 22:17:32 2019 UTC (4 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Use getline(3) to handle lines longer than 8192 bytes in patch files

Spotted by jsg@ when working on mesa.  Diff tested by sthen@ in
a partial i386 bulk.  Input from and ok jsg@ millert@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Sep 2 21:39:51 2016 UTC (7 years, 8 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

Fix 'c'hange command handling if last line of a file is removed.

If the last line of a file is removed, the line cache is erroneously
considered empty, which means that changed lines are added at the top.

spotted by and okay otto@

Revision 1.2 / (download) - annotate - [select for diffs], Mon Feb 22 19:31:38 2016 UTC (8 years, 2 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.1: +11 -18 lines
Diff to previous 1.1 (colored)

Properly handle ed-files which fully replace input file content. This
misbehaviour is triggered with 'c' and 'i' commands on empty buffers.

Spotted and fixed by Martin Natano <natano at natano dot net>.

ok millert@

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 16 07:33:47 2015 UTC (8 years, 7 months ago) by tobias
Branch: MAIN

Add native support for ed-style diffs. No need to pledge "proc exec" anymore.

ok deraadt

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.