name-rev: use strip_suffix to avoid magic numbers
commit34e02deb60b4db22243d47846eb926de9e0d1cf9
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:08:37 +0000 (24 17:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 18:08:06 +0000 (5 11:08 -0700)
treedac7d0fd96ad4086e9dfdf301c21a21922df916b
parent00b6c178c3ab475098f7a0bc63b2df2da508020c
name-rev: use strip_suffix to avoid magic numbers

The manual size computations here are correct, but using
strip_suffix makes that obvious, and hopefully communicates
the intent of the code more clearly.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/name-rev.c