name-rev: avoid unnecessary cast in name_ref()
authorSZEDER Gábor <redacted>
Tue, 12 Nov 2019 10:38:12 +0000 (11:38 +0100)
committerJunio C Hamano <redacted>
Fri, 6 Dec 2019 21:29:04 +0000 (13:29 -0800)
commite0c4da6f2adcede27fb097337c71f7b377a074a1
tree39fb68b96e32645fff6e1577ae2ac415de5cad4d
parentc3794d4ccb70c6b36be3fd4981682f422b04de05
name-rev: avoid unnecessary cast in name_ref()

Casting a 'struct object' to 'struct commit' is unnecessary there,
because it's already available in the local 'commit' variable.

Signed-off-by: SZEDER Gábor <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/name-rev.c
git clone https://git.99rst.org/PROJECT