Implements "add-local" with optional version argument.

I don't know if git call is at the right place.
I wonder how it should work for git tags, since git-rev-parse will return "HEAD".