diff options
author | Rafael Ascensão <rafa.almas@gmail.com> | 2018-11-12 13:25:44 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-13 14:41:22 +0900 |
commit | 9ab9b5df0ee2a49e0c1354a667e1e00db903f516 (patch) | |
tree | 12d807f4027241a66ecd1eba1bfb5b18affeb005 /t/perf/.gitignore | |
parent | refs: show --exclude failure with --branches/tags/remotes=glob (diff) | |
download | tgif-9ab9b5df0ee2a49e0c1354a667e1e00db903f516.tar.xz |
refs: fix some exclude patterns being ignored
`--exclude` from rev-list and rev-parse fails to exclude references if
the next `--branches`, `--tags` or `--remotes` use the optional
inclusive glob because those options are implemented as particular cases
of `--glob=`, which itself requires that exclude patterns begin with
'refs/'.
But it makes sense for `--branches=glob` and friends to be aware that
exclusions patterns for them shouldn't be 'refs/<type>/' prefixed, the
same way exclude patterns for `--branches` and friends (without the
optional glob) already are.
Let's record in 'refs.c:struct ref_filter' which context the exclude
pattern is tied to, so refs.c:filter_refs() can decide if it should
ignore the prefix when trying to match.
Signed-off-by: Rafael Ascensão <rafa.almas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/.gitignore')
0 files changed, 0 insertions, 0 deletions