Autodetect branches and tags

Issue #12 resolved
Augie Fackler
repo owner created an issue

We're told when an add is a copy. It shouldn't be too hard to use that to automatically detect branches and tags in a sane way.