On Tue, 2021-05-25 at 12:56 +0000, Antoine Viallon via aur-general wrote:
24 mai 2021 09:11 "Miguel Revilla Rodríguez via aur-general" < aur-general@lists.archlinux.org> a écrit:
Then we only have to start using xdelta instead of diff to create the patches and we will be fine, as the deltas don't contain any of the original code, but only instructions on how to convert it to the new one.
Correct me if I'm wrong, but I think we could also use `diff -U0`, as it does not include any context at all. Only and strictly only the lines added and removed are mentionned. This means that, if you do not remove any lines at all, you should be fine.
Antoine Viallon (aviallon)
Unfortunately it still uses the original code. Here is my test. $ diff -U0 <(seq 900 1000) <(seq 900 1000 | sed -e "s/999/99999999/" ) --- /dev/fd/63 2021-05-25 09:57:37.954088656 -0400 +++ /dev/fd/62 2021-05-25 09:57:37.954088656 -0400 @@ -100 +100 @@ -999 +99999999 Note the '-999' part. Best, Manhong