ref-filter: rename 'FILTER_REFS_ALL' to 'FILTER_REFS_REGULAR'
The flag 'FILTER_REFS_ALL' is a bit ambiguous, where ALL doesn't specify if it means to contain refs from all worktrees or whether all types of refs (regular, HEAD & pseudorefs) or all of the above. Since here it is actually referring to all refs with the "refs/" prefix, let's rename it to 'FILTER_REFS_REGULAR' to indicate that this is specifically for regular refs. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
d0f00c1ac1
commit
810f7a1aac
@ -97,7 +97,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
|
||||
filter.match_as_path = 1;
|
||||
filter_and_format_refs(&filter, FILTER_REFS_ALL, sorting, &format);
|
||||
filter_and_format_refs(&filter, FILTER_REFS_REGULAR, sorting, &format);
|
||||
|
||||
ref_filter_clear(&filter);
|
||||
ref_sorting_release(sorting);
|
||||
|
Reference in New Issue
Block a user