some cleanup, use git-core

Signed-off-by: Ken Barber <ken@bob.sh>