Commits


fix ed script diff output when lines are inserted at the top of a file


allow for telling the difference between empty and non-existent files Adjust labels used in diff output accordingly; non-existent files should have the label "/dev/null"


handle binary files like diff(1) does; new -a option forces text


add a missing include for uint8_t and switch from <inttypes.h> to <stdint.h> ok millert stsp


allow diff API users to atomize files separately This is a breaking API change (not that we care about that at this point). This can avoid redundant work spent on atomizing a file multiple times. There are use cases where one particular file must be compared to other files over and over again, such as when blaming file history. The old API gave access to both versions of the file to the atomizer just in case a future atomizer implementation needs this. This can still be achieved by passing a second file via the atomizer's private data pointer.


expose chunk_context_empty() via diff_internal.h and use it in edscript output


in ed output mode, show changed lines as XXcYY etc. as UNIX diff(1) does


fix missing newline in ed script diff output


fix edscript diff output for empty files


add a diff output mode which produces simple ed(1) scripts