author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Thu, 6 Oct 2011 16:50:06 +0000 (18:50 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 7 Oct 2011 22:46:13 +0000 (15:46 -0700) | ||
commit | 5d176fb6b6a22f19f7a15fc344dfb08af1e29ed7 | |
tree | 3d8ff7042434d0131c9d73545d772b85eca1c9de | tree | snapshot |
parent | 15dafaf80dda8e90114ae178569b9600ebd07109 | commit | diff |
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>
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>
diffcore-pickaxe.c | diff | blob | history |