summaryrefslogtreecommitdiff
path: root/t/t6300-for-each-ref.sh
diff options
context:
space:
mode:
authorLibravatar Hariom Verma <hariom18599@gmail.com>2020-08-21 21:41:49 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-08-28 13:52:51 -0700
commit47d4676ac8a50b7d53e12ae200ed9b5661522129 (patch)
treeabbcb9f08753d501306d6efc020eea1bdbc38418 /t/t6300-for-each-ref.sh
parentref-filter: add `short` modifier to 'parent' atom (diff)
downloadtgif-47d4676ac8a50b7d53e12ae200ed9b5661522129.tar.xz
pretty: refactor `format_sanitized_subject()`
The function 'format_sanitized_subject()' is responsible for sanitized subject line in pretty.c e.g. the subject line the-sanitized-subject-line It would be a nice enhancement to `subject` atom to have the same feature. So in the later commits, we plan to add this feature to ref-filter. Refactor `format_sanitized_subject()`, so it can be reused in ref-filter.c for adding new modifier `sanitize` to "subject" atom. Currently, the loop inside `format_sanitized_subject()` runs until `\n` is found. But now, we stored the first occurrence of `\n` in a variable `eol` and passed it in `format_sanitized_subject()`. And the loop runs upto `eol`. Mentored-by: Christian Couder <chriscool@tuxfamily.org> Mentored-by: Heba Waly <heba.waly@gmail.com> Signed-off-by: Hariom Verma <hariom18599@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6300-for-each-ref.sh')
0 files changed, 0 insertions, 0 deletions