diff options
author | Taylor Blau <me@ttaylorr.com> | 2017-10-01 22:25:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-02 15:36:27 +0900 |
commit | 624b44d3763bd10e51fdcf66a205535140ca8539 (patch) | |
tree | 2e8762502baf0d0ce274cab7d4922917dfeb212d /line-log.c | |
parent | ced1f08b7b0b625a3ce21185573c80e7ada1e3fa (diff) | |
download | git-624b44d3763bd10e51fdcf66a205535140ca8539.tar.gz git-624b44d3763bd10e51fdcf66a205535140ca8539.tar.xz |
t6300: refactor %(trailers) tests
We currently have one test for %(trailers) in `git-for-each-ref(1)`,
through "%(contents:trailers)". In preparation for more, let's add a few
things:
- Move the commit creation step to its own test so that it can be
re-used.
- Add a non-trailer to the commit's trailers to test that non-trailers
aren't shown using "%(trailers:only)".
- Add a multi-line trailer to ensure that trailers are unfolded
correctly using "%(trailers:unfold)".
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-log.c')
0 files changed, 0 insertions, 0 deletions