]> git.ipfire.org Git - thirdparty/git.git/commit
resolve_missing_loose_ref(): simplify semantics
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 7 Apr 2016 19:02:55 +0000 (15:02 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 Apr 2016 18:35:13 +0000 (11:35 -0700)
commit419c6f4c76c5950a33ed2cedbce9c6f7d66773f6
treebd632defe38ae1d4747ad4e48f78a3868c1d0cc3
parent757552db5794056cdeccab827745f3de1fb82f4b
resolve_missing_loose_ref(): simplify semantics

Make resolve_missing_loose_ref() only responsible for looking up a
packed reference, without worrying about whether we want to read or
write the reference and without setting errno on failure. Move the other
logic to the caller.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c