summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-01-28 11:04:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-05 08:38:41 (GMT)
commitecf4c2ec6ba6dc39e72c6b37f2a238e28fec2dc1 (patch)
tree374f1a731497684787e925b85ed29727b36b1cf9 /refs.h
parentb94f2eda99646fea71f84ccd895d94b0001d0db6 (diff)
downloadgit-ecf4c2ec6ba6dc39e72c6b37f2a238e28fec2dc1.zip
git-ecf4c2ec6ba6dc39e72c6b37f2a238e28fec2dc1.tar.gz
git-ecf4c2ec6ba6dc39e72c6b37f2a238e28fec2dc1.tar.bz2
builtin-apply.c: optimize match_beginning/end processing a bit.
Wnen the caller knows the hunk needs to match at the beginning or at the end, there is no point starting from the line number that is found in the patch and trying match with increasing offset. The logic to find matching lines was made more line oriented with the previous patch and this optimization is now trivial. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
0 files changed, 0 insertions, 0 deletions