decorate: allow const objects to be decorated
commit54988bdad7dc3f09e40752221c144bf470d73aa7
authorJeff King <peff@peff.net>
Wed, 20 Aug 2008 17:55:33 +0000 (20 13:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Aug 2008 20:30:49 +0000 (20 13:30 -0700)
treef0c09c0757f8cfe35aac8fb8065c21e321e92f38
parente276c26b4b65711c27e3ef37e732d41eeae42094
decorate: allow const objects to be decorated

We don't actually modify the struct object, so there is no
reason not to accept const versions (and this allows other
callsites, like the next patch, to use the decoration
machinery).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
decorate.c
decorate.h