Merge branch 'jc/attr-source-tree'

"git --attr-source=<tree> cmd $args" is a new way to have any
command to read attributes not from the working tree but from the
given tree object.

* jc/attr-source-tree:
  attr: teach "--attr-source=<tree>" global option to "git"
This commit is contained in:
Junio C Hamano
2023-05-17 10:11:41 -07:00
16 changed files with 140 additions and 29 deletions

View File

@@ -736,7 +736,7 @@ int match_pathspec_attrs(struct index_state *istate,
if (name[namelen])
name = to_free = xmemdupz(name, namelen);
git_check_attr(istate, NULL, name, item->attr_check);
git_check_attr(istate, name, item->attr_check);
free(to_free);