summaryrefslogtreecommitdiff
path: root/tree-walk.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-12-15 22:02:39 +0700
committerJunio C Hamano <gitster@pobox.com>2011-02-03 13:04:23 -0800
commit475005a11768a3906c42fac55e8b3371794bdef3 (patch)
tree21e8d4fcf9b88d0ed2d068d73358394c1cdc667c /tree-walk.h
parent66f136252fe1998e2c1381c913795b5f56b6dc8c (diff)
downloadgit-475005a11768a3906c42fac55e8b3371794bdef3.tar.gz
tree_entry_interesting(): remove dependency on struct diff_options
This function can be potentially used in more places than just tree-diff.c. "struct diff_options" does not make much sense outside diff_tree_sha1(). While removing the use of diff_options, it also removes tree_entry_extract() call, which means S_ISDIR() uses the entry->mode directly, without being filtered by canon_mode() (called internally inside tree_entry_extract). The only use of the mode information in this function is to check the type of the entry by giving it to S_ISDIR() macro, and the result does not change with or without canon_mode(), so it is ok to bypass tree_entry_extract(). Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.h')
0 files changed, 0 insertions, 0 deletions