]> git.ipfire.org Git - thirdparty/git.git/commit
commit: add gentle reference lookup method
authorDerrick Stolee <derrickstolee@github.com>
Wed, 14 Aug 2024 10:31:28 +0000 (10:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Aug 2024 17:10:05 +0000 (10:10 -0700)
commit69020d034b75a7cd198c7351219d07ee6926fe59
tree90647b7e547cb56cc5c2c8f266540655e6628144
parente32eaf73b0023122d23381dd027365e0c9fd50e8
commit: add gentle reference lookup method

The lookup_commit_reference_by_name() method uses lookup_commit_reference()
without an option to use lookup_commit_reference_gently(). Create a gentle
version of the method so it can be used in locations where non-commits may
be found but error messages should be silenced.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
commit.h