sha1_name: get_sha1_with_context learns to follow symlinks
commitc4ec96774ba247597bc4c571d85069d225665422
authorDavid Turner <dturner@twopensource.com>
Wed, 20 May 2015 17:03:39 +0000 (20 13:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2015 20:46:13 +0000 (20 13:46 -0700)
tree791f6b1a950f26c31940ded018e94d332e23f7a3
parent275721c2671800a905e873e58be2f1c2f313bf88
sha1_name: get_sha1_with_context learns to follow symlinks

Wire up get_sha1_with_context to call get_tree_entry_follow_symlinks
when GET_SHA1_FOLLOW_SYMLINKS is passed in flags. G_S_FOLLOW_SYMLINKS
is incompatible with G_S_ONLY_TO_DIE because the diagnosis
that ONLY_TO_DIE triggers does not at present consider symlinks, and
it would be a significant amount of additional code to allow it to
do so.

Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
sha1_name.c