From: Michael Haggerty Date: Thu, 7 Apr 2016 19:02:57 +0000 (-0400) Subject: resolve_ref_unsafe(): ensure flags is always set X-Git-Tag: v2.9.0-rc0~99^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a70a93b7947d3aa6a202342256e616460a2b6e5b?hp=a70a93b7947d3aa6a202342256e616460a2b6e5b resolve_ref_unsafe(): ensure flags is always set If the caller passes flags==NULL, then set it to point at a local scratch variable. This removes the need for a lot of "if (flags)" guards in resolve_ref_1() and resolve_missing_loose_ref(). Signed-off-by: Michael Haggerty Signed-off-by: David Turner Signed-off-by: Junio C Hamano ---