switch git show head to function with default