Format function name. Refresh git status at right time