summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2023-11-14 19:53:52 +0000
committerJunio C Hamano <gitster@pobox.com>2023-11-16 14:02:59 +0900
commite7574b0c6b1e0cf2de9e000766a13d23fd9516e6 (patch)
treeeea6d4b3510f6f7d3d60215d67ddcba89a29aa14 /git-svn.perl
parent6d6e5c53b0c3d5566680ee8786d40405db917917 (diff)
ref-filter.h: add functions for filter/format & format-only
Add two new public methods to 'ref-filter.h': * 'print_formatted_ref_array()' which, given a format specification & array of ref items, formats and prints the items to stdout. * 'filter_and_format_refs()' which combines 'filter_refs()', 'ref_array_sort()', and 'print_formatted_ref_array()' into a single function. This consolidates much of the code used to filter and format refs in 'builtin/for-each-ref.c', 'builtin/tag.c', and 'builtin/branch.c', reducing duplication and simplifying the future changes needed to optimize the filter & format process. Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-svn.perl')
0 files changed, 0 insertions, 0 deletions