]> git.ipfire.org Git - thirdparty/git.git/commit - worktree.c
refs: pass NULL to refs_resolve_ref_unsafe() if hash is not needed
authorRené Scharfe <l.s.r@web.de>
Sat, 23 Sep 2017 09:44:57 +0000 (11:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Sep 2017 01:18:18 +0000 (10:18 +0900)
commite691b027b60034ed3362fc4d6065b6be85bf234b
tree70bd0398eea23aa1848f9e8265a8e4e005f85432
parent54fad6614fc6b61ee6eb4a5b3daa7a2239019b49
refs: pass NULL to refs_resolve_ref_unsafe() if hash is not needed

This allows us to get rid of two write-only variables, one of them
being a SHA1 buffer.

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