]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/blame.c
blame: validate and peel the object names on the ignore list
authorJunio C Hamano <gitster@pobox.com>
Fri, 25 Sep 2020 04:55:04 +0000 (21:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Sep 2020 05:20:58 +0000 (22:20 -0700)
commit610e2b924020fe2d6a55e7ca6651f309b85c2d1d
tree4dda607bf854f2b293862eca090389a55812857e
parentf58931c8d69a9499ae7bc8bae2cefa18df418270
blame: validate and peel the object names on the ignore list

The command reads list of object names to place on the ignore list
either from the command line or from a file, but they are not
checked with their object type (those read from the file are not
even checked for object existence).

Extend the oidset_parse_file() API and allow it to take a callback
that can be used to die (e.g. when an inappropriate input is read)
or modify the object name read (e.g. when a tag pointing at a commit
is read, and the caller wants a commit object name), and use it in
the code that handles ignore list.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
oidset.c
oidset.h
t/t8013-blame-ignore-revs.sh