]> git.ipfire.org Git - thirdparty/git.git/commit - tree-walk.c
tree-walk: learn get_tree_entry_follow_symlinks
authorDavid Turner <dturner@twopensource.com>
Wed, 20 May 2015 17:03:38 +0000 (13:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2015 20:45:49 +0000 (13:45 -0700)
commit275721c2671800a905e873e58be2f1c2f313bf88
tree562325f6f6376c088ca6d91511a1e7961800453f
parent8440f74997cf7958c7e8ec853f590828085049b8
tree-walk: learn get_tree_entry_follow_symlinks

Add a new function, get_tree_entry_follow_symlinks, to tree-walk.[ch].
The function is not yet used.  It will be used to implement git
cat-file --batch --follow-symlinks.

The function locates an object by path, following symlinks in the
repository.  If the symlinks lead outside the repository, the function
reports this to the caller.

Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-walk.c
tree-walk.h