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

Re: [PATCH] gpg-interface.c: detect and reject multiple signatures on commits

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 17, 2018, 06:54 UTC
Message-ID
<20180817065444.GC131749@aiede.svl.corp.google.com>
In-Reply-To
<1534488137.1262.2.camel@gentoo.org>
Michał Górny wrote:
> On Wed, 2018-08-15 at 14:31 -0700, Jonathan Nieder wrote:
>> It's not clear to me that the name is_status or SIGNATURE_STATUS
>> captures what this field represents.  Aren't these all sigcheck
>> statuses?  Can you describe briefly what distinguishes the cases where
>> this should be 0 versus 1?
[...]
>                                  Maybe it should be EXCLUSIVE_STATUS
> or something like that, to distinguish from things that can occur
> simultaneously to them.
Thanks.  Makes sense.
[...]
Show 7 quoted lines
>> Can we have a test to make sure this behavior doesn't regress?  See
>> t/README for an overview of the test framework and "git grep -e gpg t/"
>> for some examples.
>
> Will try.  Do I presume correctly that I should include the commit
> object with the double signature instead of hacking git to construct it?
> ;-)

Good question. You can hack away with a new program in t/helper/, or you can make your test do object manipulation with "git cat-file commit <object>" and "git hash-object -t commit -w --stdin". If you run into trouble, just let the list know and I'm happy to try to help. (Or if you would like real-time help, I'm usually in #git-devel on freenode.)

Jonathan
Previous: Michał GórnyNext: Junio C Hamano
Message 3 of 4 in “Re: [PATCH] gpg-interface.c: detect and reject multiple signatures on commits”
  1. Jonathan NiederAug 15, 2018
  2. Michał GórnyAug 17, 2018
  3. Jonathan NiederAug 17, 2018
  4. Junio C HamanoAug 17, 2018

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.