• Show log

    Commit

  • Hash : a16e4172
    Author : Russell Belfer
    Date : 2013-07-25T12:27:39

    Fix rename detection to use actual blob size
    
    The size data in the index may not reflect the actual size of the
    blob data from the ODB when content filtering comes into play.
    This commit fixes rename detection to use the actual blob size when
    calculating data signatures instead of the value from the index.
    
    Because of a misunderstanding on my part, I first converted the
    git_index_add_bypath API to use the post-filtered blob data size
    in creating the index entry.  I backed that change out, but I
    kept the overall refactoring of that routine and the new internal
    git_blob__create_from_paths API because it eliminates an extra
    stat() call from the code that adds a file to the index.
    
    The existing tests actually cover this code path, at least when
    running on Windows, so at this point I'm not adding new tests to
    cover the changes.