]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/replace.c
use get_tagged_oid()
authorRené Scharfe <l.s.r@web.de>
Thu, 5 Sep 2019 19:59:42 +0000 (21:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Sep 2019 21:11:34 +0000 (14:11 -0700)
commitc77722b3ea42a87381915f1203648a5f5d86c1ff
tree44b3e742d69e5e3334b5865ae1237cc9c045f258
parentdad3f0607bf1c864f80723ab20b39527260f2c4f
use get_tagged_oid()

Avoid derefencing ->tagged without checking for NULL by using the
convenience wrapper for getting the ID of the tagged object.  It die()s
when encountering a broken tag instead of segfaulting.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/describe.c
builtin/log.c
builtin/replace.c
packfile.c
ref-filter.c