Merge branch 'jk/diff-not-so-quick'

* jk/diff-not-so-quick:
  diff: futureproof "stop feeding the backend early" logic
  diff_tree: disable QUICK optimization with diff filter

Conflicts:
	diff.c
This commit is contained in:
Junio C Hamano
2011-06-06 11:40:14 -07:00
5 changed files with 16 additions and 5 deletions

7
diff.c
View File

@ -4456,6 +4456,13 @@ int diff_result_code(struct diff_options *opt, int status)
return result;
}
int diff_can_quit_early(struct diff_options *opt)
{
return (DIFF_OPT_TST(opt, QUICK) &&
!opt->filter &&
DIFF_OPT_TST(opt, HAS_CHANGES));
}
/*
* Shall changes to this submodule be ignored?
*