aboutsummaryrefslogtreecommitdiffstats
path: root/list-objects-filter.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2024-02-14 15:25:10 +0100
committerJunio C Hamano <gitster@pobox.com>2024-02-14 09:38:22 -0800
commit3ff56af99b1c9becd9e603b59986359f553e62a8 (patch)
tree08b10d2d735bfa9b65f48ee2d540b3cec3b172b9 /list-objects-filter.c
parentt9210: do not rely on lazy fetching to fail (diff)
downloadgit-3ff56af99b1c9becd9e603b59986359f553e62a8.tar.gz
git-3ff56af99b1c9becd9e603b59986359f553e62a8.zip
revision: clarify a 'return NULL' in get_reference()
When we know a pointer variable is NULL, it's clearer to explicitly return NULL than to return that variable. In get_reference(), when 'object' is NULL, we already return NULL when 'revs->exclude_promisor_objects && is_promisor_object(oid)' is true, but we return 'object' when 'revs->ignore_missing' is true. Let's make the code clearer and more uniform by also explicitly returning NULL when 'revs->ignore_missing' is true. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects-filter.c')
0 files changed, 0 insertions, 0 deletions