Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 6, 2007
  1. Introduce diff_filespec_is_binary()

    This replaces an explicit initialization of filespec->is_binary
    field used for rename/break followed by direct access to that
    field with a wrapper function that lazily iniaitlizes and
    accesses the field.  We would add more attribute accesses for
    the use of diff routines, and it would be better to make this
    abstraction earlier.
    Signed-off-by: Junio C Hamano <>
Commits on Jul 1, 2007
  1. diffcore-delta.c: Ignore CR in CRLF for text files

    This ignores CR byte in CRLF sequence in text file when
    computing similarity of two blobs.
    Usually this should not matter as nobody sane would be checking
    in a file with CRLF line endings to the repository (they would
    use autocrlf so that the repository copy would have LF line
    Signed-off-by: Junio C Hamano <>
  2. diffcore-delta.c: update the comment on the algorithm.

    The comment at the top of the file described an old algorithm
    that was neutral to text/binary differences (it hashed sliding
    window of N-byte sequences and counted overlaps), but long time
    ago we switched to a new heuristics that are more suitable for
    line oriented (read: text) files that are much faster.
    Signed-off-by: Junio C Hamano <>
  3. diffcore_count_changes: pass diffcore_filespec

    We may want to use richer information on the data we are dealing
    with in this function, so instead of passing a buffer address
    and length, just pass the diffcore_filespec structure.  Existing
    callers always call this function with parameters taken from a
    filespec anyway, so there is no functionality changes.
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.