triv.txt 356 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Another example from Hunt and McIlroy,
  2. “An Algorithm for Differential File Comparison.”
  3. https://www.cs.dartmouth.edu/~doug/diff.pdf
  4. Anchored diff gives up on finding anything,
  5. since there are no unique lines.
  6. -- old --
  7. a
  8. b
  9. c
  10. a
  11. b
  12. b
  13. a
  14. -- new --
  15. c
  16. a
  17. b
  18. a
  19. b
  20. c
  21. -- diff --
  22. diff old new
  23. --- old
  24. +++ new
  25. @@ -1,7 +1,6 @@
  26. -a
  27. -b
  28. -c
  29. -a
  30. -b
  31. -b
  32. -a
  33. +c
  34. +a
  35. +b
  36. +a
  37. +b
  38. +c