summaryrefslogtreecommitdiff
path: root/quote.h
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2013-08-09 21:39:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-08-13 16:08:58 (GMT)
commit9ae9ca1f95ccd3b4c1d62d856eb8b48fdff7c2d5 (patch)
tree139fda2f4b2dd14e14bef1c01b67343eaaad54d0 /quote.h
parent5ce922a014f78684a96c3d03a51decf0d21fa58d (diff)
downloadgit-9ae9ca1f95ccd3b4c1d62d856eb8b48fdff7c2d5.zip
git-9ae9ca1f95ccd3b4c1d62d856eb8b48fdff7c2d5.tar.gz
git-9ae9ca1f95ccd3b4c1d62d856eb8b48fdff7c2d5.tar.bz2
contacts: validate hunk length earlier
Rather than calling get_blame() with a zero-length hunk only to have it rejected immediately, perform hunk-length validation earlier in order to avoid calling get_blame() unnecessarily. This is a preparatory step to simplify later patches which reduce the number of git-blame invocations by collecting together all lines to blame within a single file at a particular revision. By validating the blame range early, the subsequent patch can more easily avoid adding empty ranges at collection time. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.h')
0 files changed, 0 insertions, 0 deletions