convert: convert renormalize_buffer to take an index
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
82b474e025
commit
a33e0b2a77
@ -1639,8 +1639,8 @@ static int blob_unchanged(struct merge_options *opt,
|
||||
* performed. Comparison can be skipped if both files are
|
||||
* unchanged since their sha1s have already been compared.
|
||||
*/
|
||||
if (renormalize_buffer(path, o.buf, o.len, &o) |
|
||||
renormalize_buffer(path, a.buf, a.len, &a))
|
||||
if (renormalize_buffer(&the_index, path, o.buf, o.len, &o) |
|
||||
renormalize_buffer(&the_index, path, a.buf, a.len, &a))
|
||||
ret = (o.len == a.len && !memcmp(o.buf, a.buf, o.len));
|
||||
|
||||
error_return:
|
||||
|
||||
Reference in New Issue
Block a user