]> git.ipfire.org Git - thirdparty/git.git/commit - revision.h
revision: make get_revision_mark() return const pointer
authorDenton Liu <liu.denton@gmail.com>
Wed, 20 Nov 2019 00:51:13 +0000 (16:51 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Nov 2019 04:33:36 +0000 (13:33 +0900)
commit4982516451ed4979bc7fc1a7f002fc310b060118
treeaad68030729a47275260b369ce139f2b92d47f3a
parentf0f9de2bd71b41afeb2a2a77a681a15a83246a62
revision: make get_revision_mark() return const pointer

get_revision_mark() used to return a `char *`, even though all of the
strings it was returning were string literals. Make get_revision_mark()
return a `const char *` so that callers won't be tempted to modify the
returned string.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
revision.h