Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
diff: empty files are the same (#578)
* Test case: "touch empty && perl diff empty empty" * Program seems to hang; ctrl-c in perl debugger hints that we are stuck in Algorithm::Diff::traverse_sequences() * Program grew to use >2GB of memory before I killed it * traverse_sequences() doesn't seem to handle when both lists of input lines are empty (I didn't bother investigating why) * Put a sanity check before diff()+traverse_sequences() are called; input files are read in total before diff() so the size of line list is know * I also tested a non-empty file against an empty one
- Loading branch information