Thread (60 messages) flat view 60 messages, 6 authors, 2017-08-17

Re: [PATCH v3 2/5] interpret-trailers: add an option to show only the trailers

From: Stefan Beller <hidden>
Date: 2017-08-10 18:29:01

On Thu, Aug 10, 2017 at 11:04 AM, Jeff King [off-list ref] wrote:
In theory it's easy for any reader who wants to parse
trailers to do so. But there are a lot of subtle corner
cases around what counts as a trailer, when the trailer
block begins and ends, etc. Since interpret-trailers already
has our parsing logic, let's let callers ask it to just
output the trailers.

They still have to parse the "key: value" lines, but at
least they can ignore all of the other corner cases.

Signed-off-by: Jeff King <redacted>
Sorry for a sloppy review last round, upon reviewing
I found another nit.
+test_expect_success 'only trailers' '
+       git config trailer.sign.command "echo config-value" &&
You may want to use 'test_config' here, which keeps the config
only for one test. The subsequent tests seem to overwrite the
config, so this is not wrong, just not the best style.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help