attr: add attr.tree for setting the treeish to read attributes from