]> git.ipfire.org Git - thirdparty/git.git/commit
show-branch: simplify rev_is_head()
authorRené Scharfe <l.s.r@web.de>
Fri, 27 Aug 2021 19:20:27 +0000 (21:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Aug 2021 21:12:15 +0000 (14:12 -0700)
commite4f8d27585c6884dab26ded734cab7d8c08370a1
tree5768b7ba815f9772410f302cec14a54d9d6a758c
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf
show-branch: simplify rev_is_head()

Only one of the callers of rev_is_head() provides two hashes to compare.
Move that check there and convert it to struct object_id.

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