We could remove this because we have already checked that at verify_ref_format function in ref-filter.
Signed-off-by: Olga Telezhnaia <olyatelezhn...@gmail.com> Mentored-by: Christian Couder <christian.cou...@gmail.com> Mentored by: Jeff King <p...@peff.net> --- builtin/cat-file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/builtin/cat-file.c b/builtin/cat-file.c index dd43457c0ad7e..1f331559e55c7 100644 --- a/builtin/cat-file.c +++ b/builtin/cat-file.c @@ -197,8 +197,6 @@ static void expand_atom(struct strbuf *sb, const char *atom, int len, strbuf_addstr(sb, data->rest); else if (is_atom("deltabase", atom, len)) strbuf_addstr(sb, oid_to_hex(&data->delta_base_oid)); - else - die("unknown format element: %.*s", len, atom); } static size_t expand_format(struct strbuf *sb, const char *start, void *vdata) -- https://github.com/git/git/pull/450