diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2011-10-06 18:50:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-07 15:46:13 -0700 |
commit | 5d176fb6b6a22f19f7a15fc344dfb08af1e29ed7 (patch) | |
tree | 3d8ff7042434d0131c9d73545d772b85eca1c9de /t/t4044-diff-index-unique-abbrev.sh | |
parent | pickaxe: factor out has_changes (diff) | |
download | tgif-5d176fb6b6a22f19f7a15fc344dfb08af1e29ed7.tar.xz |
pickaxe: pass diff_options to contains and has_changes
Remove the unused parameter needle from contains() and has_changes().
Also replace the parameter len with a pointer to the diff_options. We
can use its member pickaxe to check if the needle is an empty string
and use the kwsmatch structure to find out the length of the match
instead.
This change is done as a preparation to unify the signatures of
has_changes() and diff_grep(), which will be used in the patch after
the next one to factor out common code.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4044-diff-index-unique-abbrev.sh')
0 files changed, 0 insertions, 0 deletions