sage-dev: simplify GitInterface.has_uncommitted_changes
sage-dev: use DOCTEST_MODE to ease doctesting
sage-dev: more doctests for GitInterface
sage-dev: overhaul branch conversions