]> git.ipfire.org Git - thirdparty/git.git/commit - tag.h
tag: factor out get_tagged_oid()
authorRené Scharfe <l.s.r@web.de>
Thu, 5 Sep 2019 19:55:55 +0000 (21:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Sep 2019 21:10:18 +0000 (14:10 -0700)
commitdad3f0607bf1c864f80723ab20b39527260f2c4f
tree6244ac7c9264fa111df3523c8c384bb395abd98c
parent745f6812895b31c02b29bdfe4ae8e5498f776c26
tag: factor out get_tagged_oid()

Add a function for accessing the ID of the object referenced by a tag
safely, i.e. without causing a segfault when encountering a broken tag
where ->tagged is NULL.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-bitmap.c
revision.c
tag.c
tag.h