use parse_options() in git hash-object