diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-06-06 11:40:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-06-06 11:40:14 -0700 |
commit | 456a4c08b8d8ddefda939014c15877ace3e3f499 (patch) | |
tree | 02e78225fadc62bb3585494b9cb418d833bd8e01 /diff.c | |
parent | 6c92972d7f5ab247a8cab5e4b88cb281bf201970 (diff) | |
parent | 28b9264dd6cbadcef8b3e48c24ffcb2893b668b3 (diff) | |
download | git-456a4c08b8d8ddefda939014c15877ace3e3f499.tar.gz git-456a4c08b8d8ddefda939014c15877ace3e3f499.tar.xz |
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
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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? * |