Move argument formatting to separate function
Format file, diff, blame and revision arguments
Rename format_arg => format_expand_arg
Append the argument in format_expand_arg
Introduce format_context struct to simplify argument passing
GH-109