]> git.ipfire.org Git - thirdparty/git.git/commit
name-rev: respect const qualifier
authorRené Scharfe <l.s.r@web.de>
Tue, 4 Feb 2020 21:16:10 +0000 (22:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Feb 2020 18:24:15 +0000 (10:24 -0800)
commit36d2419c9a1b38f6883318f2af9b704d5d78356f
tree5129389200763416955770f746e3be23a8f3cc19
parent71620ca86c530c234b09049b42e3d54f2a36087c
name-rev: respect const qualifier

Keep the const qualifier of the first parameter of get_rev_name() even
when casting the object pointer to a commit pointer, and further for the
parameter of get_commit_rev_name(), as all these uses are read-only.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/name-rev.c