From 1c37e86ab2834dfca311799e799568794bc474ce Mon Sep 17 00:00:00 2001 From: Jonathan Tan Date: Tue, 7 Apr 2020 15:11:41 -0700 Subject: diff: make diff_populate_filespec_options struct The behavior of diff_populate_filespec() currently can be customized through a bitflag, but a subsequent patch requires it to support a non-boolean option. Replace the bitflag with an options struct. Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano --- diffcore-break.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'diffcore-break.c') diff --git a/diffcore-break.c b/diffcore-break.c index 9d20a6a6fc..e8f6322c6a 100644 --- a/diffcore-break.c +++ b/diffcore-break.c @@ -62,8 +62,8 @@ static int should_break(struct repository *r, oideq(&src->oid, &dst->oid)) return 0; /* they are the same */ - if (diff_populate_filespec(r, src, 0) || - diff_populate_filespec(r, dst, 0)) + if (diff_populate_filespec(r, src, NULL) || + diff_populate_filespec(r, dst, NULL)) return 0; /* error but caught downstream */ max_size = ((src->size > dst->size) ? src->size : dst->size); -- cgit v1.2.3