From: Taylor Blau Date: Mon, 2 Oct 2017 05:25:22 +0000 (-0700) Subject: t6300: refactor %(trailers) tests X-Git-Tag: v2.15.0-rc1~10^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/624b44d3763bd10e51fdcf66a205535140ca8539?hp=624b44d3763bd10e51fdcf66a205535140ca8539 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 Signed-off-by: Junio C Hamano ---