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

Re: [PATCH v3] commit-tree: add missing --gpg-sign flag

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Jan 19, 2019, 16:48 UTC
Message-ID
<CAN0heSocQu+w9V3HUJDQVtFZ-NT++dubyt49QOMfvHpJSfNgZA@mail.gmail.com>
In-Reply-To
<20190119154552.12189-1-martin.agren@gmail.com>
On Sat, 19 Jan 2019 at 16:46, Martin Ågren <martin.agren@gmail.com> wrote:
Show 11 quoted lines
>         # commit.gpgsign is still on but this must not be signed
> -       git tag ninth-unsigned $(echo 9 | git commit-tree HEAD^{tree}) &&
> +       echo 9 | git commit-tree HEAD^{tree} >oid &&
> +       test_line_count = 1 oid &&
> +       git tag ninth-unsigned $(cat oid) &&
>         # explicit -S of course must sign.
> -       git tag tenth-signed $(echo 9 | git commit-tree -S HEAD^{tree})
> +       echo 10 | git commit-tree -S HEAD^{tree} >oid &&
> +       test_line_count = 1 oid &&
> +       git tag tenth-signed $(cat oid)
>  '
Or, a bit simpler:
  oid=$(echo 10 | git commit-tree -S HEAD^{tree}) &&
  git tag tenth-signed "$oid"
Martin
Previous: Martin ÅgrenNext: Brandon Richardson
Message 3 of 6 in “commit-tree: add missing --gpg-sign flag”
  1. commit-tree: add missing --gpg-sign flagBrandon Richardson, Jan 19, 2019
  2. Martin ÅgrenJan 19, 2019
  3. Martin ÅgrenJan 19, 2019
  4. Brandon RichardsonJan 19, 2019
  5. Martin ÅgrenJan 19, 2019
  6. Brandon RichardsonJan 19, 2019

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.