patchutils icon indicating copy to clipboard operation
patchutils copied to clipboard

in version 0.4.4 lsdiff and filterdiff are counting binary changes

Open sergiomb2 opened this issue 2 months ago • 0 comments

in version 0.4.4 lsdiff and filterdiff are counting binary changes for example

diff --git a/src/WEB-INF/lib/postgresql-jdbc.jar b/src/WEB-INF/lib/postgresql-jdbc.jar    
new file mode 100644    
index 0000000..02bc736    
Binary files /dev/null and b/src/WEB-INF/lib/postgresql-jdbc.jar differ    
diff --git a/src/font/Anton/Anton-Regular.ttf b/src/font/Anton/Anton-Regular.ttf    
new file mode 100644    
index 0000000..c7d7455    

cat example.patch|lsdiff -N

File #0 a/src/WEB-INF/lib/postgresql-jdbc.jar File #0 a/src/font/Anton/Anton-Regular.ttf

the count begins in 1

also filterdiff shows all binary changes even if we ask just to show file #3 ( cat example.patch| filterdiff -F3)

diff --git a/src/WEB-INF/lib/postgresql-jdbc.jar b/src/WEB-INF/lib/postgresql-jdbc.jar
new file mode 100644
index 0000000..02bc736
Binary files /dev/null and b/src/WEB-INF/lib/postgresql-jdbc.jar differ
diff --git a/src/font/Anton/Anton-Regular.ttf b/src/font/Anton/Anton-Regular.ttf
new file mode 100644
index 0000000..c7d7455

sergiomb2 avatar Nov 14 '25 14:11 sergiomb2