summaryrefslogtreecommitdiff
path: root/t/t4120-apply-popt.sh
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2012-02-23 00:43:39 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-02-22 16:01:50 -0800
commitdb70a04cbb343a58e7be93e7f581d049cf901b26 (patch)
tree05d61cdac1a47d58922818246d9f4f32c5333701 /t/t4120-apply-popt.sh
parentremote: use a local variable in match_push_refs() (diff)
downloadtgif-db70a04cbb343a58e7be93e7f581d049cf901b26.tar.xz
remote: reorganize check_pattern_match()
The function match_name_with_pattern() is called twice, once to see if a pattern matches with the name, and again to learn what the matched pattern maps the name to. Since check_pattern_match() is only used in one place, we can just reorganize it to make a single call and fetch the values at the same time. This changes the meaning of check_pattern_match() that used to check which pattern in the array of refspecs matched the given ref, to return the name of the remote ref the given ref is mapped to. Rename it to get_ref_match() which actually describes more closely what it's actually doing now. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4120-apply-popt.sh')
0 files changed, 0 insertions, 0 deletions