summaryrefslogtreecommitdiff
path: root/contrib/examples/git-svnimport.perl
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-10-28 08:34:06 -0400
committerLibravatar Jeff King <peff@peff.net>2012-10-28 08:48:09 -0400
commit8fa4b09fb14339c5d62e65a88fde8b220cb1591b (patch)
treef59014d98e5109d6e5864ca1590de731ae4b13a2 /contrib/examples/git-svnimport.perl
parentdiff_grep: use textconv buffers for add/deleted files (diff)
downloadtgif-8fa4b09fb14339c5d62e65a88fde8b220cb1591b.tar.xz
pickaxe: hoist empty needle check
If we are given an empty pickaxe needle like "git log -S ''", it is impossible for us to find anything (because no matter what the content, the count will always be 0). We currently check this at the lowest level of contains(). Let's hoist the logic much earlier to has_changes(), so that it is simpler to return our answer before loading any blob data. Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'contrib/examples/git-svnimport.perl')
0 files changed, 0 insertions, 0 deletions