]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs: make sha1 output parameter of refs_resolve_ref_unsafe() optional
authorRené Scharfe <l.s.r@web.de>
Sat, 23 Sep 2017 09:41:45 +0000 (11:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Sep 2017 01:18:18 +0000 (10:18 +0900)
commit54fad6614fc6b61ee6eb4a5b3daa7a2239019b49
treea92e973eb56be4876524c2fdae0239bf1afff1f1
parent59c0ea183ad1c5c2b3790caa5046e4ecfa839247
refs: make sha1 output parameter of refs_resolve_ref_unsafe() optional

Allow callers of refs_resolve_ref_unsafe() to pass NULL if they don't
need the resolved hash value.  We already allow the same for the flags
parameter.  This new leniency is inherited by the various wrappers like
resolve_ref_unsafe().

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h