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

Since previous commit, this function does not compare entry hashes, and
mode are compared fully outside of it. So what it does is compare entry
names and DIR bit in modes. Reflect this in its name.

Add documentation stating the semantics, and move the note about
files/dirs comparison to it.

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