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

Re: [PATCH] pulling signed tag: add howto document

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 18, 2012, 21:22 UTC
Message-ID
<7v62g8n1tq.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4F16E228.5050203@xiplink.com>
Marc Branchaud <marcnarc@xiplink.com> writes:
Show 8 quoted lines
>> +A contributor or a lieutenant
>> +-----------------------------
>> +
>> +After preparing her work to be pulled, the contributor uses `git tag -s`
>> +to create a signed tag [*1*]:
>
> Given that the rest of the text refers to the gist of this footnote, I think
> it'd be better to put the note's text here instead of as a footnote.
Hmm, I'll try to see how well it reads after moving the text here. Thanks.
Show 17 quoted lines
>> +
>> +------------
>> + $ git checkout work
>> + $ ... "git pull" from sublieutenants, "git commit" your own work ...
>> + $ git tag -s -m "Completed frotz feature" frotz-for-xyzzy work
>> +------------
>> +
>> +and pushes the tag out to her publishing repository [*2*]. There is no
>
> This footnote speaks of the example using a +, but the example does no such
> thing.
>
>> +need to push the `work` branch or anything else:
>> +
>> +------------
>> + $ git push example.com:/git/froboz.git/ +frotz-for-xyzzy
>> +------------

Do you not see the plus in front of +'frotz-for-xyzzy' above, or am I missing something?

Show 13 quoted lines
>> +In the editor, the integrator will see something like this:
>> +
>> +------------
>> + Merge tag 'frotz-for-xyzzy' of example.com:/git/froboz.git/
>> +
>> + Completed frotz feature
>> + # gpg: Signature made Fri 02 Dec 2011 10:03:01 AM PST using RSA key ID 96AFE6CB
>> + # gpg: Good signature from "Con Tributor <nitfol@example.com>"
>> +------------
>> +
>> +provided if the signature in the signed tag verifies correctly. Notice
>
> s/if //
Noted.
>> +repository (i.e. `git tag -l` won't list frotz-for-xyzzy tag in the above
>
> s/list/list the/
Noted.
Show 16 quoted lines
>> +There is no need to fetch and keep a signed tag like `frotz-for-xyzzy`
>> +that is used for frequent "pull" exchange in the long term just for such
>> +auditing purposes, as the signature is recorded as part of the merge
>> +commit.
>
> I had trouble parsing this sentence.  I think part of the problem is that
> it's comparing the actual implementation to an earlier proposed design that
> was rejected.  So it's trying to sell the reader on a feature of the
> implemented design, but the reader doesn't care.
>
> How about this instead:
>
> There is no need for the auditor to explicitly fetch the contributor's
> signature, or to even be aware of what tag(s) the contributor and integrator
> used to communicate the signature.  All the required information is recorded
> as part of the merge commit.
Ok, that is much easier to read.
Show 9 quoted lines
>> +
>> +
>> +Footnotes
>> +---------
>> +
>> +*1* This example uses the `-m` option to create a signed tag with just a
>> +single liner message, but this is for illustration purposes only. It is
>
> s/single liner/single-line/
Noted.
Thanks.
Previous: Marc BranchaudNext: Marc Branchaud
Message 4 of 10 in “Using signed tag in pull requests”
  1. Junio C HamanoJan 17, 2012
  2. pulling signed tag: add howto documentJunio C Hamano, Jan 17, 2012
  3. Marc BranchaudJan 18, 2012
  4. Junio C HamanoJan 18, 2012
  5. Marc BranchaudJan 18, 2012
  6. Junio C HamanoJan 18, 2012
  7. Marc BranchaudJan 18, 2012
  8. Andrew ArdillJan 18, 2012
  9. Junio C HamanoJan 18, 2012
  10. Andrew ArdillJan 18, 2012

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.