]> git.ipfire.org Git - thirdparty/git.git/commit - tree-diff.c
tree-diff: no need to call "full" diff_tree_sha1 from show_path()
authorKirill Smelkov <kirr@mns.spb.ru>
Thu, 27 Mar 2014 14:21:29 +0000 (18:21 +0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Mar 2014 18:50:29 +0000 (11:50 -0700)
commitb9081a657446ac2c5e2129de183edb41d4b4f4fb
tree5c18623bcde16212dd57211c15774e3767c93752
parent52894e70951518e44c064cef2561aed38202fd36
tree-diff: no need to call "full" diff_tree_sha1 from show_path()

As described in previous commit, when recursing into sub-trees, we can
use lower-level tree walker, since its interface is now sha1 based.

The change is ok, because diff_tree_sha1() only invokes
ll_diff_tree_sha1(), and also, if base is empty, try_to_follow_renames().
But base is not empty here, as we have added a path and '/' before
recursing.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-diff.c