summaryrefslogtreecommitdiff
path: root/t/t2001-checkout-cache-clash.sh
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-11-18 17:48:00 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-11-19 10:50:33 +0900
commit5a0b97b34c51eaddf39624857f1ac0e7df4ca2e3 (patch)
tree69b655383aafc8b6fd38942e841e2b477309cd83 /t/t2001-checkout-cache-clash.sh
parentdir.c: move, rename and export match_attrs() (diff)
downloadtgif-5a0b97b34c51eaddf39624857f1ac0e7df4ca2e3.tar.xz
tree-walk: support :(attr) matching
This lets us use :(attr) with "git grep <tree-ish>" or "git log". :(attr) requires another round of checking before we can declare that a path is matched. This is done after path matching since we have lots of optimization to take a shortcut when things don't match. Note that if :(attr) is present, we can't return all_entries_interesting / all_entries_not_interesting anymore because we can't be certain about that. Not until match_pathspec_attrs() can tell us "yes all these paths satisfy :(attr)". Second note. Even though we walk a specific tree, we use attributes from _worktree_ (or falling back to the index), not from .gitattributes files on that tree. This by itself is not necessarily wrong, but the user just have to be aware of this. 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 't/t2001-checkout-cache-clash.sh')
0 files changed, 0 insertions, 0 deletions