<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/editors/diff.c, branch long_paths</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=long_paths</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=long_paths'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2025-08-10T06:46:58+00:00</updated>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2025-08-10T06:46:58+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-08-10T06:46:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c70a65f36c017f6feb7e86415bec1a644e71dbab'/>
<id>urn:sha1:c70a65f36c017f6feb7e86415bec1a644e71dbab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>diff: code shrink</title>
<updated>2025-07-04T19:40:51+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2025-07-04T19:40:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=142ac2d796dddea50d8926d1747523182c12d097'/>
<id>urn:sha1:142ac2d796dddea50d8926d1747523182c12d097</id>
<content type='text'>
function                                             old     new   delta
diffreg                                             1317    1307     -10

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<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: improve --binary implementation</title>
<updated>2023-01-29T11:28:19+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-01-29T10:49:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=33ae88c40cf56b53c06e627e0535c9c740767aa4'/>
<id>urn:sha1:33ae88c40cf56b53c06e627e0535c9c740767aa4</id>
<content type='text'>
Commit 82f0d19b1 (diff: implement --binary flag) was both over-
complicated and incorrect.  If stdin was seekable it was left in
binary mode even if the --binary flag wasn't supplied.

Always open files in binary mode.  Only switch to text mode at the
last moment, if necessary.

Saves 48 bytes.
</content>
</entry>
<entry>
<title>diff: implement --binary flag</title>
<updated>2023-01-27T13:27:29+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-01-27T13:11:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=82f0d19b101271889b0b2ebe8cdb2f5eb4f64e6c'/>
<id>urn:sha1:82f0d19b101271889b0b2ebe8cdb2f5eb4f64e6c</id>
<content type='text'>
On Windows GNU diff uses text mode for input and output.  It also
has the '--binary' flag to use binary mode instead.  On Unix binary
mode is the default and the flag does nothing.

Alter diff to use text mode by default for input (though not output,
let's not go overboard).  Add the '--binary' flag to override this.

Costs 96-160 bytes.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2021-03-01T11:48:04+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-03-01T11:48:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e2e8e16b465d34759678b8170c44ce62c5b74eb0'/>
<id>urn:sha1:e2e8e16b465d34759678b8170c44ce62c5b74eb0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>diff: code shrink</title>
<updated>2021-02-22T18:00:07+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-02-16T09:09:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=858f8aafacf93ff4642a2f62dc0d7f0f31f95cce'/>
<id>urn:sha1:858f8aafacf93ff4642a2f62dc0d7f0f31f95cce</id>
<content type='text'>
function                                             old     new   delta
diff_main                                           1515    1495     -20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-20)             Total: -20 bytes

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2020-11-12T08:27:51+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-11-12T08:27:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ead8b92e3d66ab45235e137f85fb3a529dcc64ef'/>
<id>urn:sha1:ead8b92e3d66ab45235e137f85fb3a529dcc64ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libbb: shrink recursive_action() by reducing memory pressure</title>
<updated>2020-10-01T19:52:16+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-10-01T19:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=689d0650ab63425adaea26afe347015a204958ee'/>
<id>urn:sha1:689d0650ab63425adaea26afe347015a204958ee</id>
<content type='text'>
function                                             old     new   delta
recursive_action1                                      -     316    +316
file_action_grep                                     161     164      +3
add_to_prg_cache_if_socket                           202     205      +3
depmod_main                                          509     511      +2
writeFileToTarball                                   488     489      +1
parse_module                                         281     282      +1
fileAction                                           207     208      +1
act                                                  189     190      +1
add_to_dirlist                                        65      64      -1
writeTarFile                                         196     194      -2
uuidcache_init                                        47      45      -2
uuidcache_check_device                               109     107      -2
true_action                                            8       6      -2
run_parts_main                                       310     308      -2
netstat_main                                         534     532      -2
lsusb_main                                            29      27      -2
lspci_main                                            45      43      -2
initial_scan                                         138     136      -2
grep_main                                            845     843      -2
find_main                                            482     480      -2
config_file_action                                   437     435      -2
chmod_main                                           142     140      -2
dirAction                                             14      10      -4
diff_main                                           1544    1540      -4
chown_main                                           154     148      -6
skip_dir                                             136     129      -7
dir_act                                              191     184      -7
recursive_action                                     453      69    -384
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/20 up/down: 328/-439)        Total: -111 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2019-08-16T08:45:21+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2019-08-16T08:42:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=517cf74f6265ec4308b790b637b3f9778cbdc6e0'/>
<id>urn:sha1:517cf74f6265ec4308b790b637b3f9778cbdc6e0</id>
<content type='text'>
</content>
</entry>
</feed>
