refs.c: let fprintf handle the formatting
commitc653e0343d04ba89040c8ba18d7ca2e55ece6338
authorStefan Beller <sbeller@google.com>
Fri, 12 Dec 2014 08:57:03 +0000 (12 09:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2014 18:13:16 +0000 (22 10:13 -0800)
treed2b916795ed2979e860668ce68f4b78c3fbdb3d5
parent3581d793351dba4e4a2f779a72f39d6ae84c1c2c
refs.c: let fprintf handle the formatting

Instead of calculating whether to put a plus or minus sign, offload
the responsibilty to the fprintf function.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c