diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2020-04-16 14:15:48 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-16 11:04:55 -0700 |
commit | c9f7a793e81f517593383768ec8839dac85368c4 (patch) | |
tree | e9767ae9828ed510bb28a36be8444a87e7969ebf /versioncmp.c | |
parent | Sync with v2.26.1 (diff) | |
download | tgif-c9f7a793e81f517593383768ec8839dac85368c4.tar.xz |
log-tree: make ref_filter_match() a helper method
The ref_filter_match() method is defined in refs.h and implemented
in refs.c, but is only used by add_ref_decoration() in log-tree.c.
Move it into that file as a static helper method. The
match_ref_pattern() comes along for the ride.
While moving the code, also make a slight adjustment to have
ref_filter_match() take a struct decoration_filter pointer instead
of multiple string lists. This is non-functional, but will make a
later change be much cleaner.
The diff is easier to parse when using the --color-moved option.
Reported-by: Junio C Hamano <gister@pobox.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'versioncmp.c')
0 files changed, 0 insertions, 0 deletions