]> git.ipfire.org Git - thirdparty/git.git/commit
tree-diff: simplify tree_entry_pathcmp
authorKirill Smelkov <kirr@mns.spb.ru>
Mon, 24 Feb 2014 16:21:43 +0000 (20:21 +0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Mar 2014 22:04:32 +0000 (15:04 -0700)
commit1a27a1545230a5a19a3c05ed41efb8530d2fd2cd
treefbd3772d57a5f3346d5b382371f3b385cc8d42d2
parent5acabd84a6656a4f568f0e934cc9e1b344ed39d4
tree-diff: simplify tree_entry_pathcmp

Since an earlier "Finally switch over tree descriptors to contain a
pre-parsed entry", we can safely access all tree_desc->entry fields
directly instead of first "extracting" them through
tree_entry_extract.

Use it. The code generated stays the same - only it now visually looks
cleaner.

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