git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's cooking in git.git (Aug 2017, #04; Fri, 18)

From
Jeff King <peff@peff.net>
Date
Aug 20, 2017, 09:40 UTC
Message-ID
<20170820094009.z23wclpku35txflg@sigill.intra.peff.net>
In-Reply-To
<xmqq60dkbma1.fsf@gitster.mtv.corp.google.com>
On Fri, Aug 18, 2017 at 02:26:14PM -0700, Junio C Hamano wrote:
Show 15 quoted lines
> * jk/trailers-parse (2017-08-15) 8 commits
>  - pretty: support normalization options for %(trailers)
>  - t4205: refactor %(trailers) tests
>  - pretty: move trailer formatting to trailer.c
>  - interpret-trailers: add --parse convenience option
>  - interpret-trailers: add an option to unfold values
>  - interpret-trailers: add an option to show only existing trailers
>  - interpret-trailers: add an option to show only the trailers
>  - trailer: put process_trailers() options into a struct
> 
>  "git interpret-trailers" has been taught a "--parse" and a few
>  other options to make it easier for scripts to grab existing
>  trailer lines from a commit log message.
> 
>  Will merge to 'next'.

I saw that this was merged and ended up with a few conflicts related to the other interpret-trailers series (sorry). Your resolution looks good to me.

There are a few leftover bits I think we could do on top:
  - we disallow "--trailer" with "--only-input", because the former is
    quietly ignored. After the two series are merged, I think "--where",
    etc should probably get the same treatment (the behavior without it
    isn't horrible, but it's nice to warn the user that what they asked
    for is bogus).
  - Martin pointed out a typo in the new documentation
  - I just noticed that ref-filter understands "%(trailer)", too
    (courtesy of Jacob's original series from last year; I didn't think
    to even check for it). It probably should learn to support the
    additional options, too. I didn't look, but it probably could just
    reuse the new trailer.c formatting function I added.
There's a patch for the second one below.

None for the other two right now, as I'm just trying to clear out backlog before going offline for a few days (but I'd be happy if anybody wanted to take a crack at them in the meantime).

-Peff
-- >8 --
From: =?UTF-8?q?Martin=20=C3=85gren?= <martin.agren@gmail.com>
Subject: [PATCH] doc/interpret-trailers: fix "the this" typo
Signed-off-by: Jeff King <peff@peff.net>
---
I put Martin as the author since he noticed the bug, but I think we are
OK without a signoff for this trivial change (normally I'd have just
squashed, but the topic is in 'next' now).
 Documentation/git-interpret-trailers.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git-interpret-trailers.txt b/Documentation/git-interpret-trailers.txt
index 1df8aabf51..2e22210734 100644
--- a/Documentation/git-interpret-trailers.txt
+++ b/Documentation/git-interpret-trailers.txt
@@ -21,7 +21,7 @@ This command reads some patches or commit messages from either the
 <file> arguments or the standard input if no <file> is specified. If
 `--parse` is specified, the output consists of the parsed trailers.
 
-Otherwise, the this command applies the arguments passed using the
+Otherwise, this command applies the arguments passed using the
 `--trailer` option, if any, to the commit message part of each input
 file. The result is emitted on the standard output.
 
-- 
2.14.1.495.ged40d10435
Previous: Jeff KingNext: Jeff King
Message 5 of 10 in “What's cooking in git.git (Aug 2017, #04; Fri, 18)”
  1. Junio C HamanoAug 18, 2017
  2. Torsten BögershausenAug 19, 2017
  3. Junio C HamanoAug 19, 2017
  4. Jeff KingAug 20, 2017
  5. Jeff KingAug 20, 2017
  6. doc: fix typo in sendemail.identityJeff King, Aug 20, 2017
  7. Martin ÅgrenAug 20, 2017
  8. Junio C HamanoAug 20, 2017
  9. Duy NguyenAug 22, 2017
  10. Junio C HamanoAug 22, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.