chiark / gitweb /
import: split out URL handling into its own function