check-ref-format: simplify --print implementation
commit1ba447b8dc2ec4e6c8ebbbdaa449f38edc29ad3f
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 12 Oct 2009 05:33:01 +0000 (12 00:33 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Oct 2009 05:19:35 +0000 (12 22:19 -0700)
tree86e65a3309a7bbcc7e9cfb0ba9e93d117f1634ad
parent38eedc634bc5d30e8a7a2356d9eb3ae95d9b1d75
check-ref-format: simplify --print implementation

normalize_path_copy() is a complicated function, but most of its
functionality will never apply to a ref name that has been checked
with check_ref_format().

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-check-ref-format.c