builtin/grep: simplify lock_and_read_sha1_file()
commit764161391f2dd3fc12a5bec1385e0ab40dd90fd6
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2011 19:15:51 +0000 (26 12:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2011 20:09:23 +0000 (26 13:09 -0700)
tree76a2fcca03e6df07832603195cac66ff6c499c65
parent1487a12ba228c6003f503366f40840eee9887179
builtin/grep: simplify lock_and_read_sha1_file()

As read_sha1_lock/unlock have been made aware of use_threads,
this caller can be made a lot simpler.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c