summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-06-18 14:07:14 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-07-10 13:57:32 +0000
commit670bcd28354ed2d44c02eaa0d0d1a78f6c49458d (patch)
tree52d871c37a049718273501ab61ab8b2192247598 /yarns
parent3dc83847b8f17793bdab5e978d13d394b48987b0 (diff)
downloadmorph-670bcd28354ed2d44c02eaa0d0d1a78f6c49458d.tar.gz
Don't check if a file exists before trying to read it
We used to check whether a file existed before trying to read it. We used to be able to get away with only looking at the top-level directory, which made using ls-files before trying to cat-file it better. Unfortunately, we need to look at the files in subdirectories now, so this no longer works. We could make it include files in subdirectories, but for repositories with many files, you would end up reading a file listing longer than the morphology, so even in the slow case of needing to read the entire morphology file, it would be faster to attempt to read the file first. So now we beg forgiveness rather than asking permission.
Diffstat (limited to 'yarns')
0 files changed, 0 insertions, 0 deletions