<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/testsuite/diff.tests, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-08-06T11:40:17+00:00</updated>
<entry>
<title>diff: more changes to --binary</title>
<updated>2023-08-06T11:40:17+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-08-06T11:40:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0342f258f74bde329cc98733a3b22196ca1b1bdb'/>
<id>urn:sha1:0342f258f74bde329cc98733a3b22196ca1b1bdb</id>
<content type='text'>
The changes introduced to support the --binary option gave incorrect
results when comparing files with CRLF line endings *without* the
--binary option present.

The code needs to keep track of the position within the file and is
confused by text mode.

As an alternative solution, always use binary mode but skip the CR
of a CRLF pair when the --binary option isn't used.  This gives
results matching GNU diff when comparing files with matching line
endings, with or without --binary.  When line endings differ the
results aren't always the same.

Costs 32 bytes in the 32-bit build, saves 16 in 64-bit.

(GitHub issue #348)
</content>
</entry>
<entry>
<title>diff.tests: add testcases for -B and single line changes</title>
<updated>2015-07-31T14:51:15+00:00</updated>
<author>
<name>Aaro Koskinen</name>
<email>aaro.koskinen@iki.fi</email>
</author>
<published>2015-07-30T20:13:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ad27a6d3265b2e8a27030a01121afed639bed2da'/>
<id>urn:sha1:ad27a6d3265b2e8a27030a01121afed639bed2da</id>
<content type='text'>
Add testcases for -B and single line changes.

Signed-off-by: Aaro Koskinen &lt;aaro.koskinen@iki.fi&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>diff: fix a bug in diffing against stdin. Closes 7784</title>
<updated>2015-01-11T15:41:54+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-01-11T15:41:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=39f017293a047ac1063c84263d4d855b86c62ba1'/>
<id>urn:sha1:39f017293a047ac1063c84263d4d855b86c62ba1</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>*: make GNU licensing statement forms more regular</title>
<updated>2010-08-16T18:14:46+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2010-08-16T18:14:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0ef64bdb40c54681e8dd5ab8df42ac88e4ab1d4a'/>
<id>urn:sha1:0ef64bdb40c54681e8dd5ab8df42ac88e4ab1d4a</id>
<content type='text'>
This change retains "or later" state! No licensing _changes_ here,
only form is adjusted (article, space between "GPL" and "v2" and so on).

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>diff: fix "diff dir1 dir2/". Closes bug 2203</title>
<updated>2010-07-09T17:40:00+00:00</updated>
<author>
<name>Matheus Izvekov</name>
<email>mizvekov@gmail.com</email>
</author>
<published>2010-07-09T17:40:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=61f5f7823c4f217dd9bad2f1df547f81b9338c76'/>
<id>urn:sha1:61f5f7823c4f217dd9bad2f1df547f81b9338c76</id>
<content type='text'>
Signed-off-by: Matheus Izvekov &lt;mizvekov@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>randomtest fixes</title>
<updated>2010-05-11T01:53:57+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2010-05-11T01:53:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=bfa1b2e8e8aaddcf849011a12cb2ac634b27f339'/>
<id>urn:sha1:bfa1b2e8e8aaddcf849011a12cb2ac634b27f339</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>diff: fix flag -B, cleanups and a couple more tests V2</title>
<updated>2010-01-22T03:20:16+00:00</updated>
<author>
<name>Matheus Izvekov</name>
<email>mizvekov@gmail.com</email>
</author>
<published>2010-01-21T20:58:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=6f99c91e431a5afb90ac6d041ea9b08d39c965eb'/>
<id>urn:sha1:6f99c91e431a5afb90ac6d041ea9b08d39c965eb</id>
<content type='text'>
function                                             old     new   delta
diffreg                                             1157    1268    +111
uni_range                                             51       -     -51

Signed-off-by: Matheus Izvekov &lt;mizvekov@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>diff: rewrite. much smaller and more correct</title>
<updated>2010-01-18T03:57:17+00:00</updated>
<author>
<name>Matheus Izvekov</name>
<email>mizvekov@gmail.com</email>
</author>
<published>2010-01-18T03:57:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d4a7728dc3b37e2956034f18fc26c04bc0aa2b0e'/>
<id>urn:sha1:d4a7728dc3b37e2956034f18fc26c04bc0aa2b0e</id>
<content type='text'>
function                                             old     new   delta
diffreg                                             1815    3156   +1341
diff_main                                            860    1194    +334
read_token                                             -     161    +161
skip_dir                                               -      44     +44
seek_ft                                                -      31     +31
fetch                                                362     392     +30
line_compar                                            -      21     +21
add_to_dirlist                                        65      61      -4
print_only                                            16       -     -16
skipline                                              51       -     -51
newcand                                               85       -     -85
asciifile                                             89       -     -89
print_status                                         178      73    -105
make_temp                                            148       -    -148
files_differ                                         168       -    -168
get_recursive_dirlist                                182       -    -182
sort                                                 226       -    -226
prepare                                              283       -    -283
change                                               283       -    -283
do_diff                                              416       -    -416
dump_unified_vec                                     457       -    -457
check                                               1512     595    -917
------------------------------------------------------------------------------
(add/remove: 4/12 grow/shrink: 3/3 up/down: 1962/-3430)     Total: -1468 bytes

Signed-off-by: Matheus Izvekov &lt;mizvekov@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>diff: add more tests</title>
<updated>2010-01-18T00:04:20+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2010-01-18T00:04:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b972f949577301bd7a66e88c11b9e26431d80a11'/>
<id>urn:sha1:b972f949577301bd7a66e88c11b9e26431d80a11</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>tests: fix POSIX shell source style</title>
<updated>2009-11-04T23:41:22+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2009-11-04T23:41:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=caa79406aa3d9aac512ad5a32968398cb1c2dde0'/>
<id>urn:sha1:caa79406aa3d9aac512ad5a32968398cb1c2dde0</id>
<content type='text'>
The source command does not search $PWD, and bash recently fixed itself to
follow this behavior for /bin/sh.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
</entry>
</feed>
